<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Need to set tab STOPS, not spacing.]]></title><description><![CDATA[<p dir="auto">The “Tab Settings” feature only allows specifying a fixed distance between tab stops. This is not very useful. What <em>is</em> needed is the ability to set custom tab stops for various programming languages.<br />
Cobol:        1, 7,12,16,20,24,28,32,36,40,44,48,52,56,60,73<br />
Assembler: 1,11,18,40,79</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18429/need-to-set-tab-stops-not-spacing</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 06:30:32 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18429.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Oct 2019 01:08:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Fri, 14 Feb 2025 02:11:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> said :</p>
<blockquote>
<p dir="auto">If what you want is for the tab key to insert a number of spaces,</p>
</blockquote>
<p dir="auto">I guess we’re still unsure of what the posters that showed interest really want…</p>
<blockquote>
<p dir="auto">include the ability to specify the exact tabstops for different file types and activate based on the file extension and/or the language. I don’t know if that degree of complexity is practical in a script.</p>
</blockquote>
<p dir="auto">It’s certainly not a problem to script something like that.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99852</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99852</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 14 Feb 2025 02:11:12 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Thu, 13 Feb 2025 01:18:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> said in <a href="/post/99827">Need to set tab STOPS, not spacing.</a>:</p>
<blockquote>
<p dir="auto">If what you want is for the tab key to insert a number of spaces, depending on the position of the cursor and following a simple rule, I suggest creating a script that implements that rule, then using the Shortcut mapper to remove the Tab key from SCI_TAB and assign it to your script. (You could even make the script smart enough to position the cursor at the next column if there is already text there, and only insert space when it’s at the end of a line.)</p>
<p dir="auto">If someone wanted to write a plugin, it could include the ability to specify the exact tabstops for different file types and activate based on the file extension and/or the language. I don’t know if that degree of complexity is practical in a script.</p>
</blockquote>
<p dir="auto">If I  knew what I was doing and was more familiar with the editor and the Scintilla messages, etc, I would probably start with the existing feature <code>Settings-&gt;Preferences...-&gt;Margins/Border/Edge-&gt;Vertical Edge Settings</code> and depending on where the cursor is, hitting tab would take it to the next set Vertical Edge. Since those are set apparently by column number, however NPP calculates that to be, it would seem the logical place to look to use as reference for where to tab to.  For instance, I try to keep my text to 80 columns (as in this screenshot):</p>
<p dir="auto"><img src="/assets/uploads/files/1739409376634-atabsolutionpossibly.png" alt="ATabSolutionPossibly.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">…so it doesn’t extend beyond the dBASE editor’s windows boundaries so I don’t have to scroll back and forth reading code in that Editor.</p>
<p dir="auto">Just a thought, if I was a more capable NPP plugin or Python coder. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99832</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99832</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Thu, 13 Feb 2025 01:18:38 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Wed, 12 Feb 2025 17:12:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> said in <a href="/post/99816">Need to set tab STOPS, not spacing.</a>:</p>
<blockquote>
<p dir="auto">If Notepad++ can do what you desire then it’s not obvious to me. It’s possible the ElasticTabStops plugin from from <a class="plugin-mentions-user plugin-mentions-a" href="/user/mariusv-github" aria-label="Profile: mariusv-github">@<bdi>mariusv-github</bdi></a> can do it. I installed the plugin last night but could not get it to do what I hoped.</p>
</blockquote>
<p dir="auto">The current version of ElasticTabstops is, in my opinion, broken. Its author <a href="https://community.notepad-plus-plus.org/topic/23843/new-version-1-5-for-elastic-tabstops">took over</a> the name (while stating clearly that he did not intend to “take over the development of the plugin”) from the previous version (which didn’t work on 64-bit) and promptly abandoned it.</p>
<blockquote>
<p dir="auto">It’s also possible the Columns++ plugin from <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> can do it. I gave Columns++ a quick spin but again did not see an obvious way to define tab stops.</p>
</blockquote>
<p dir="auto">The Elastic tabstops function in <a href="https://github.com/Coises/ColumnsPlusPlus" rel="nofollow ugc">Columns++</a> can help if you want to separate each column from the next by a single tab, you want the columns to line up visually, but you don’t care at which specific columns they line up. (That’s the “elastic” part — they expand or contract based on content.)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/72289">Need to set tab STOPS, not spacing.</a>:</p>
<blockquote>
<p dir="auto">o I do see an effect, but only when tab characters are used. (Another thing to note is that the “indent lines” don’t seem to respect tab stops that are not regular).</p>
<p dir="auto">Thus I don’t see how to achieve anything with only space characters. Or maybe you had some other idea?</p>
</blockquote>
<p dir="auto">If what you want is for the tab key to insert a number of spaces, depending on the position of the cursor and following a simple rule, I suggest creating a script that implements that rule, then using the Shortcut mapper to remove the Tab key from SCI_TAB and assign it to your script. (You could even make the script smart enough to position the cursor at the next column if there is already text there, and only insert space when it’s at the end of a line.)</p>
<p dir="auto">If someone wanted to write a plugin, it could include the ability to specify the exact tabstops for different file types and activate based on the file extension and/or the language. I don’t know if that degree of complexity is practical in a script.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99827</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99827</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Wed, 12 Feb 2025 17:12:12 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Tue, 11 Feb 2025 22:13:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brian-l-hughes" aria-label="Profile: Brian-L-Hughes">@<bdi>Brian-L-Hughes</bdi></a> said in <a href="/post/99726">Need to set tab STOPS, not spacing.</a>:</p>
<blockquote>
<p dir="auto">I just started programming in Assembly again after a 30 year hiatus and straight away I wanted to set tab stops!</p>
</blockquote>
<p dir="auto">If Notepad++ can do what you desire then it’s not obvious to me. It’s possible the <a href="https://github.com/mariusv-github/ElasticTabstops" rel="nofollow ugc">ElasticTabStops</a> plugin from from <a class="plugin-mentions-user plugin-mentions-a" href="/user/mariusv-github" aria-label="Profile: mariusv-github">@<bdi>mariusv-github</bdi></a> can do it. I installed the plugin last night but could not get it to do what I hoped.</p>
<p dir="auto">It’s also possible the <a href="https://github.com/Coises/ColumnsPlusPlus" rel="nofollow ugc">Columns++</a> plugin from <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> can do it. I gave Columns++ a quick spin but again did not see an obvious way to define tab stops.</p>
<p dir="auto">The lack of user-defined tab stops is strange as it’s easy on manual typewriters. I believe many keyboard driven card punches had settable tab stops as it seemed that typing code was fast and easy in those days. User-defined tab stops never became popular on serial line computer terminals starting with the Teletype Model 33 and the CRT versions where fixed 8x spacing became the rule.</p>
<p dir="auto">For others, assembly language has traditionally used 8x tab stops and uses four columns with the layout being</p>
<pre><code class="language-txt">label	opcode	operands	comments
</code></pre>
<p dir="auto">The columns in assembler text are:</p>
<ul>
<li><code>label</code> is optional and when present it nearly always starts in text column 1. Some people use a coding style where the labels are on their own line while others will use <code>label tab opcode ...</code>.</li>
<li><code>opcode</code> is nearly always lined up in a column.</li>
<li><code>operands</code> is optional and tends to be lined up in a column. As operands are associated with an opcode you will always see <code>... opcode tab operands ...</code></li>
<li><code>comments</code> are optional and nearly always are prefixed with a delimiter. It’s a coding style thing. Some people put comments in a column to the right of operands. It’s also common to see comments in text column 1 and less common that someone indents them in the opcode or operands column.</li>
</ul>
<p dir="auto">Most of the applications that convert human text readable code into binary machine code don’t care that much about spaces vs. tabs and don’t care about repeated spaces and/or tabs.</p>
<p dir="auto">As assembly languages tend to be free format I personally don’t see an issue with someone having user-defined tab stops as long as they are not ever sharing their code with others. If the files use tab characters in their files it certainly will play havoc with the minds of other humans if their tab stops don’t match the user defined stops. A text editor that uses spaces instead of tabs to line things up likely will bother some people.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99816</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99816</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Tue, 11 Feb 2025 22:13:13 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Sun, 09 Feb 2025 11:15:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brian-l-hughes" aria-label="Profile: Brian-L-Hughes">@<bdi>Brian-L-Hughes</bdi></a></p>
<p dir="auto">Your posting seems like a Microsoft rant, as you didn’t mention Notepad++ once.  If so, this is off-topic for this forum.</p>
<p dir="auto">If you’re really expressing a Notepad++ desire, you need to say so, and maybe one of the earlier posters will help you achieve your goal.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99728</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99728</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 09 Feb 2025 11:15:57 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Sun, 09 Feb 2025 07:10:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a></p>
<p dir="auto">I just started programming in Assembly again after a 30 year hiatus and straight away I wanted to set tab stops!</p>
<p dir="auto">label  tab  move.l  tab  d1,d0  tab ;  I dig 68000 in 3 tabs</p>
<p dir="auto">not</p>
<p dir="auto">label tab tab tab tab move.l tab tab tab d1,d0 tab tab tab ; i dig 68000 in 9 tabs</p>
<p dir="auto">So I stared digging.  A very long time ago, probably in the late 1980s the tabstop message EM_SETTABSTOPS was coded to provide the functionality but the units used to determine the distance were “dialog units”. The only function to convert pixels to dialog units, MapDialogRect, specifically requires a dialog box handle, HWND.  Well this is totally dumb because editors always exist in a program’s main form not in a dialog box.  So without an official way forward to effectively calculate the distance I think folks just quit enabling the old smart typewriter tab stop settings in editors based on the textbox or richedit canned windows controls.</p>
<p dir="auto">Sure MS Word had them, they probably coded a work around for their own editor but anyone else trying to make their custom editor for Windows didn’t bother with it.  Also Microsoft office programs never appeared to use the controls provided in their “c++” development package.</p>
<p dir="auto">Stackoverflow posts today say they just approximate the conversion.  C# didn’t even bother implementing it.  I suppose you could code up a dummy application just to figure out the proper ratio and make your own MapDialogRect function.</p>
<p dir="auto">You can find post after post of people trying to convert pixels and dialog units, LOL.  Another fine traditional mess Microsoft has managed to maintain after 40 years.  “We’ll make typewriters and key punches with their damn tab stops obsolete!”</p>
<p dir="auto">This is also an example of how sick Windows actually is on the inside. Look it’s Windows 95! Fancy menus and desktop!  Look it’s Windows 11! Fancy menus and a desktop!  Both housing the same old broken tabstop problem that will never be fixed.</p>
<p dir="auto">Couldn’t Microsoft add a new EM_SETTABSTOP parameter setting that would allow a pixel argument?  That’s the thing, I don’t think they mess with any of that old code at all, I think it will stay the same indefinitely.  That’s what “Windows” is to me, the ragtag collection of code that makes up the basic core system that they drag around like an anchor year after year.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99726</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99726</guid><dc:creator><![CDATA[Brian L Hughes]]></dc:creator><pubDate>Sun, 09 Feb 2025 07:10:45 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Tue, 21 Dec 2021 21:29:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> said in <a href="/post/72289">Need to set tab STOPS, not spacing.</a>:</p>
<blockquote>
<p dir="auto">Or maybe you had some other idea?</p>
</blockquote>
<p dir="auto">No, that about sums up my thoughts on the matter :-)  Thanks for the testing explanation.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72290</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72290</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Tue, 21 Dec 2021 21:29:10 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Tue, 21 Dec 2021 21:19:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: michael-vincent">@<bdi>michael-vincent</bdi></a> said in <a href="/post/72288">Need to set tab STOPS, not spacing.</a>:</p>
<blockquote>
<p dir="auto">but after they’re inserted, can’t you have N++ set to convert to space?</p>
</blockquote>
<p dir="auto">My experiment was:</p>
<ul>
<li>create new file tab with Ctrl+n</li>
<li>execute Pythonscript <code>editor.clearTabStops(0)</code> in console</li>
<li>execute Pythonscript <code>editor.addTabStops(0, 100)</code> in console</li>
<li>move focus to editor (on line 1 since empty file); press Tab key a few times (observe insertion of four space characters each time)</li>
<li>go to <em>Preferences</em>, change <em>Default</em> file type setting to not replace with spaces</li>
<li>move focus back to editor line 1; delete previously entered spaces; press Tab key a few times; observe:</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1640121177788-e91bd4eb-998d-464e-bd07-c56b7f67b082-image.png" alt="e91bd4eb-998d-464e-bd07-c56b7f67b082-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">So I do see an effect, but only when tab characters are used.  (Another thing to note is that the “indent lines” don’t seem to respect tab stops that are not regular).</p>
<p dir="auto">Thus I don’t see how to achieve anything with only space characters.  Or maybe you had some other idea?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72289</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72289</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 21 Dec 2021 21:19:41 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Tue, 21 Dec 2021 21:04:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> said in <a href="/post/72287">Need to set tab STOPS, not spacing.</a>:</p>
<blockquote>
<p dir="auto">when true tab characters are used</p>
</blockquote>
<p dir="auto">but after they’re inserted, can’t you have N++ set to convert to space?</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72288</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72288</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Tue, 21 Dec 2021 21:04:29 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Tue, 21 Dec 2021 19:34:46 GMT]]></title><description><![CDATA[<p dir="auto">A little experimentation on my own shows that the Scintilla functions for this only work when true tab characters are used, and I have zero interest in that, so…  I’m out.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72287</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72287</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 21 Dec 2021 19:34:46 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Tue, 21 Dec 2021 19:15:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> ,</p>
<p dir="auto">Yep, which is why the option of choosing the number of spaces to substitute for a tab was implemented in those old word processors. :-)  They were, at the time, the best multi-tool we had, until syntax-highlighting became a desired tool for programmers and the editors took different directions at that point, for the most part, as I remember it. :-)</p>
<p dir="auto">Lee</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72286</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72286</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Tue, 21 Dec 2021 19:15:27 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Tue, 21 Dec 2021 19:08:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lycan-thrope" aria-label="Profile: lycan-thrope">@<bdi>lycan-thrope</bdi></a> said in <a href="/post/72283">Need to set tab STOPS, not spacing.</a>:</p>
<blockquote>
<p dir="auto">instead of having auto indents setting of so many spaces</p>
</blockquote>
<p dir="auto">Yes, I do realize my desire is somewhat “against the grain” of the OP’s request (the title of this thread, after all, is <em>Need to set tab STOPS, not spacing</em>).</p>
<p dir="auto">But, for it (the general concept of a proposed solution) to be useful to me, it would <em>have</em> to consider spaces, because tab characters in my files are not allowed.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72284</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72284</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 21 Dec 2021 19:08:06 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Tue, 21 Dec 2021 19:01:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a><br />
If I’m correctly understanding the problem the OP was asking for, it sounds like the old ways we were able to setup a wordprocessor like WordPerfect and such, so that you set the tab stops at predefined areas you wanted to start sections at instead of having auto indents setting of so many spaces.  When I see Tabs in a menu option, I personally expect to see that kind of a reference (tab stops) rather than shortcuts to choose a different tab (window/folder). :-)</p>
<p dir="auto">I suspect, the implementation may be difficult since you have the column editing ability, and that may conflict with tabbing as a formatting tool?</p>
<p dir="auto">Lee</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72283</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72283</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Tue, 21 Dec 2021 19:01:40 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Tue, 21 Dec 2021 16:25:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: paul-wormer">@<bdi>paul-wormer</bdi></a> said in <a href="/post/72269">Need to set tab STOPS, not spacing.</a>:</p>
<blockquote>
<p dir="auto">What happened to this thread?</p>
</blockquote>
<p dir="auto">I think what happened is that the OP didn’t respond and express continued interest, so <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> didn’t continue expending effort on it.</p>
<p dir="auto">I would like to see such a thing, but where no tab characters are used (only spaces).  I think I could put that to some good use, but until I see it I won’t know for sure.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72270</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72270</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 21 Dec 2021 16:25:58 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Tue, 21 Dec 2021 16:15:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: ekopalypse">@<bdi>ekopalypse</bdi></a> What happened to this thread? Did somebody manage to define variable widths between tab stops? For the older fixed-format languages (dating back to punch cards) it would be  a very useful feature.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72269</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72269</guid><dc:creator><![CDATA[Paul Wormer]]></dc:creator><pubDate>Tue, 21 Dec 2021 16:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Wed, 30 Oct 2019 22:21:14 GMT]]></title><description><![CDATA[<p dir="auto">@Carl-D-Goldin</p>
<blockquote>
<p dir="auto">Yes, it would only be used with fixed-spaced fonts. Why would anyone need or want a proportional font with program source code?</p>
</blockquote>
<p dir="auto">No idea, but who knows :-)</p>
<blockquote>
<p dir="auto">Short testing? Assigned to each line? Reapplied if buffer get(s) reactivated? Please explain. Have you actually done this, tested it, etc.?</p>
</blockquote>
<blockquote>
<p dir="auto">If it can be achieved with a scripting language plugin, does such a plugin exist? If not, where are the specifications for writing such a plugin?</p>
</blockquote>
<p dir="auto"><a href="https://www.scintilla.org/index.html" rel="nofollow ugc">Scintilla</a>, the underlying control npp uses, provides <a href="https://www.scintilla.org/ScintillaDoc.html#SCI_CLEARTABSTOPS" rel="nofollow ugc">functions</a> which seem to do what you try to achieve.<br />
I used <a href="https://github.com/bruderstein/PythonScript/releases" rel="nofollow ugc">PythonScript</a> to give it a quick test to see if it is possible at all and it looks like it is. (tabs in my screenshot were created by using PythonScript)</p>
<p dir="auto">To my knowledge there are currently a python, lua, javascript and an activex (not sure if this still works)<br />
scripting plugins available which can be used to manipulate scintilla/notepad++.</p>
<p dir="auto">But a dedicated <a href="https://npp-user-manual.org/docs/plugins/#how-to-develop-a-plugin" rel="nofollow ugc">plugin</a> doing the same can be developed as well.</p>
<p dir="auto">What I’ve found out, what needs to be done so far is the following</p>
<ol>
<li>determine the pixel size of the current used font</li>
<li>on_buffer_activated callback (is called on open doc or when switching from another doc) apply the tabstops to every line of code</li>
<li>on_update_ui (is called whenever something change in the current document) do the same or find a clever algo to identify the changed/new lines</li>
</ol>
<p dir="auto">I can try to create a pythonscript, which means you have to install the pythonscript plugin,<br />
but don’t expect it to work without errors as I haven’t done anything related to tabstops yet.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48176</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48176</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 30 Oct 2019 22:21:14 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Wed, 30 Oct 2019 20:03:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<ol>
<li>Yes, I am looking for something like what you’ve pictured</li>
<li>Yes, it would only be used with fixed-spaced fonts. Why would anyone need or want a proportional font with program source code?</li>
<li>Short testing? Assigned to each line? Reapplied if buffer get(s) reactivated? Please explain. Have you actually done this, tested it, etc.?</li>
<li>If it can be achieved with a scripting language plugin, does such a plugin exist? If not, where are the specifications for writing such a plugin?</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/48173</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48173</guid><dc:creator><![CDATA[Carl D. Goldin]]></dc:creator><pubDate>Wed, 30 Oct 2019 20:03:26 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Wed, 30 Oct 2019 17:31:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said in <a href="/post/48161">Need to set tab STOPS, not spacing.</a>:</p>
<blockquote>
<p dir="auto">but I understand</p>
</blockquote>
<p dir="auto">Okay, from your screenshot it seemed apparent that you DIDN’T understand.  But now I DO think you understand. :-)</p>
<p dir="auto">BTW, ping echo received…next packet being formulated. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48165</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48165</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 30 Oct 2019 17:31:02 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Wed, 30 Oct 2019 17:27:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a></p>
<p dir="auto">This was just an example to show how it might look like<br />
but I understand that for cobol one layout and for asm the other layout should be done. Just unsure what else needs to be checked.<br />
Haven’t done anything in this area yet.</p>
<p dir="auto">Edit: btw - I’ve pinged back :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48161</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48161</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 30 Oct 2019 17:27:30 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Wed, 30 Oct 2019 17:17:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said in <a href="/post/48158">Need to set tab STOPS, not spacing.</a>:</p>
<blockquote>
<p dir="auto">So you are looking for something like this</p>
</blockquote>
<p dir="auto">I don’t think so.  I think the OP is looking for the same (inconsistent width) tab stops on every line of a file, but different for different file types.</p>
<p dir="auto">So, <em><strong>every line</strong></em> of an .asm file would have tabstops at 1,11,18,40,79, for example.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48159</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48159</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 30 Oct 2019 17:17:47 GMT</pubDate></item><item><title><![CDATA[Reply to Need to set tab STOPS, not spacing. on Wed, 30 Oct 2019 17:08:11 GMT]]></title><description><![CDATA[<p dir="auto">So you are looking for something like this<br />
<img src="/assets/uploads/files/1572455128813-b159be9d-e5e1-4fca-97f6-334190e7995a-image.png" alt="b159be9d-e5e1-4fca-97f6-334190e7995a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Does only work with fixed-spaced font, doesn’t it?<br />
From short testing it seems that it must be assigned to each line<br />
and reapplied if buffer get reactivated.<br />
To summarize, I think, more or less, this can be achieved by using<br />
a scripting language plugin.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48158</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48158</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 30 Oct 2019 17:08:11 GMT</pubDate></item></channel></rss>