<?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[Zero character indents?]]></title><description><![CDATA[<p dir="auto">Why is Npp showing indent marks even in lines with zero characters?<br />
<img src="https://i.imgur.com/9HAPhHK.png" alt="Screenshot" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21367/zero-character-indents</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 14:14:43 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21367.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Jun 2021 07:31:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zero character indents? on Wed, 23 Jun 2021 00:45:47 GMT]]></title><description><![CDATA[<p dir="auto">Actually, I usually just keep the ¶ button on, but this time I turned it off because all the [CR][LF]s were becoming distracting. (And yes, I know it’s possible to show whitespace without the [CR][LF]s, but I didn’t feel like digging into the menus for what I thought was going to be a quick edit.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67291</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67291</guid><dc:creator><![CDATA[TBugReporter]]></dc:creator><pubDate>Wed, 23 Jun 2021 00:45:47 GMT</pubDate></item><item><title><![CDATA[Reply to Zero character indents? on Tue, 22 Jun 2021 11:31:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tbugreporter" aria-label="Profile: TBugReporter">@<bdi>TBugReporter</bdi></a> said in <a href="/post/67268">Zero character indents?</a>:</p>
<blockquote>
<p dir="auto">I just don’t appreciate being misled into thinking there are spaces where there aren’t.</p>
</blockquote>
<p dir="auto">The true answer to knowing where the whitespace is is to turn on visible whitespace:</p>
<p dir="auto"><img src="/assets/uploads/files/1624361346589-701d24ec-497c-40ee-b9d9-7aa19d55decd-image.png" alt="701d24ec-497c-40ee-b9d9-7aa19d55decd-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">to get an effect like this (dots for spaces, right-arrows for tabs):</p>
<p dir="auto"><img src="/assets/uploads/files/1624361453695-1ce5eb3e-8842-4cce-b564-3f65a07a718a-image.png" alt="1ce5eb3e-8842-4cce-b564-3f65a07a718a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I do understand your original complaint, though, about the “Indent Guide” showing on line 2 of your file.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67269</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67269</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 22 Jun 2021 11:31:13 GMT</pubDate></item><item><title><![CDATA[Reply to Zero character indents? on Tue, 22 Jun 2021 05:29:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gstavi" aria-label="Profile: gstavi">@<bdi>gstavi</bdi></a> said in <a href="/post/67234">Zero character indents?</a>:</p>
<blockquote>
<p dir="auto">Probably line 2 DOES contain 2 tab chars.</p>
</blockquote>
<p dir="auto">Do you really think I’m incapable of knowing what’s in a four line test file that I created myself?</p>
<blockquote>
<p dir="auto">Another question is why Notepad++, when pressing ENTER on whitespace only line keeps the whitespace.</p>
</blockquote>
<p dir="auto">I honestly can’t think of any reason why anyone would want trailing whitespace on any line, but automatically removing it strikes me as a little too Orwellian; I just want to know where the spaces are - and where they aren’t.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dinkumoil" aria-label="Profile: dinkumoil">@<bdi>dinkumoil</bdi></a> said in <a href="/post/67236">Zero character indents?</a>:</p>
<blockquote>
<p dir="auto"><em>Scintilla</em>, the underlying edit component Notepad++ uses internally, provides (beyond turning indent marks off) three indent mark styles<br />
When writing source code, it seems like you would presumably prefer style <code>SC_IV_LOOKFORWARD</code> and when writing normal text you would presumably prefer style <code>SC_IV_REAL</code>.</p>
</blockquote>
<p dir="auto">Actually, after installing your plugin, I prefer “Real indentation” for everything. I’m competent enough to remove the extraneous whitespace characters; I just don’t appreciate being misled into thinking there are spaces where there aren’t.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67268</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67268</guid><dc:creator><![CDATA[TBugReporter]]></dc:creator><pubDate>Tue, 22 Jun 2021 05:29:07 GMT</pubDate></item><item><title><![CDATA[Reply to Zero character indents? on Mon, 21 Jun 2021 11:36:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gstavi" aria-label="Profile: gstavi">@<bdi>gstavi</bdi></a> said in <a href="/post/67234">Zero character indents?</a>:</p>
<blockquote>
<p dir="auto">Trim Trailing Space and Save (Alt-Shift-S) is a friend. I would like an option to make it the default so every save will trim trailing space.</p>
</blockquote>
<p dir="auto">Do what I did many years ago, about 5 minutes after I started using Notepad++:  Change your save keycombo to run this macro instead.  (I’m sure you’ve already done this)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67244</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67244</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 21 Jun 2021 11:36:39 GMT</pubDate></item><item><title><![CDATA[Reply to Zero character indents? on Mon, 21 Jun 2021 09:03:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tbugreporter" aria-label="Profile: TBugReporter">@<bdi>TBugReporter</bdi></a></p>
<p dir="auto"><em>Scintilla</em>, the underlying edit component Notepad++ uses internally, provides (beyond turning indent marks off) three indent mark styles (citing from <em>Scintilla</em>’s documentation):</p>
<ul>
<li><code>SC_IV_REAL</code> - Indentation guides are shown inside real indentation white space.</li>
<li><code>SC_IV_LOOKFORWARD</code> - Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line. If the previous non-empty line was a fold header then indentation guides are shown for one more level of indent than that line. This setting is good for Python.</li>
<li><code>SC_IV_LOOKBOTH</code> - Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line or previous non-empty line whichever is the greater. This setting is good for most languages.</li>
</ul>
<p dir="auto">Notepad++ mostly uses style <code>SC_IV_LOOKBOTH</code>. However, for some programming languages (like Python, Haskell, VB and some others) it uses <code>SC_IV_LOOKFORWARD</code>.</p>
<p dir="auto">When writing source code, it seems like you would presumably prefer style <code>SC_IV_LOOKFORWARD</code> and when writing normal text you would presumably prefer style <code>SC_IV_REAL</code>. You can set these styles by using a scripting plugin (e.g. <em>PythonScript</em>, <em>NppExec</em> and others) or by using my <em>ExtSettings</em> plugin, which is available via <em>PluginsAdmin</em>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67236</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67236</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Mon, 21 Jun 2021 09:03:07 GMT</pubDate></item><item><title><![CDATA[Reply to Zero character indents? on Mon, 21 Jun 2021 08:01:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tbugreporter" aria-label="Profile: TBugReporter">@<bdi>TBugReporter</bdi></a><br />
Probably line 2 DOES contain 2 tab chars.<br />
Do a select all  (CTRL-A), the highlight will be short for truly empty lines and longer for  lines with whitespace chars only.</p>
<p dir="auto">Another question is why Notepad++, when pressing ENTER on whitespace only line keeps the whitespace. I would prefer Notepad++ to be smart enough to delete the whitespace while maintaining indentation on the next line thus avoiding unintentional whitespace only lines and extra whitespace in general. However, others may disagree with my opinion.</p>
<p dir="auto">In any case, Trim Trailing Space and Save (Alt-Shift-S) is a friend. I would like an option to make it the default so every save will trim trailing space.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67234</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67234</guid><dc:creator><![CDATA[gstavi]]></dc:creator><pubDate>Mon, 21 Jun 2021 08:01:06 GMT</pubDate></item></channel></rss>