<?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[Hide horizontal line at folds?]]></title><description><![CDATA[<p dir="auto">Is there a way to hide or change the color of the horizontal white line at a folded function/code block?<br />
<img src="/assets/uploads/files/1736031408130-aa80ed69-46fc-4e48-a179-4bb3decaaed8-image.png" alt="aa80ed69-46fc-4e48-a179-4bb3decaaed8-image.png" class=" img-fluid img-markdown" /> s</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26524/hide-horizontal-line-at-folds</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 06:59:40 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26524.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Jan 2025 22:57:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hide horizontal line at folds? on Tue, 19 Aug 2025 03:41:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/98971">Hide horizontal line at folds?</a>:</p>
<blockquote>
<p dir="auto"><code>editor.setElementColour(ELEMENT.FOLD_LINE, (0,0,255,255))</code><br />
where the color is (RED,GREEN,BLUE,ALPHA)<br />
…<br />
And hiding it completely can be done by either setting the ALPHA to 0</p>
</blockquote>
<p dir="auto">Yes, surprisingly this works.<br />
While:</p>
<blockquote>
<p dir="auto"><code>or editor.setFoldFlags(0) in PythonScript </code></p>
</blockquote>
<p dir="auto">no, not by itself: it would leave behind a green line as if text were hidden with View/Hide Lines . As the other thread showed, that command would need to be followed by additional commands to set the Alpha of those “hidden lines’line” to 0. The full equivalent in Python would be:</p>
<pre><code>editor.setFoldFlags(0)
old_col=editor.getElementColour(ELEMENT.HIDDEN_LINE )
new_col=old_col[:3]+(0,) # 0 for alpha, to hide; 255 to show 
editor.setElementColour(ELEMENT.HIDDEN_LINE, new_col)
</code></pre>
<hr />
<p dir="auto">I find it puzzling that the latter solution requires further changing the "hidden lines’ line " colour, while:<br />
<code>editor.setElementColour(ELEMENT.FOLD_LINE, (x,x,x,0))</code><br />
is enough by itself.<br />
At first I thought it’s a PythonScript behind the scenes trick, but it works in NppExec too, for example with:<br />
<code>SCI_SENDMSG SCI_SETELEMENTCOLOUR SC_ELEMENT_FOLD_LINE 0x00000000</code><br />
(the relevant Alpha part is the first 2 0s , making color transparent/invisible).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/102957</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/102957</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 19 Aug 2025 03:41:21 GMT</pubDate></item><item><title><![CDATA[Reply to Hide horizontal line at folds? on Sun, 05 Jan 2025 00:12:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/0villitz" aria-label="Profile: 0Villitz">@<bdi>0Villitz</bdi></a> ,</p>
<p dir="auto">Unfortunately, there is not yet a configuration option to allow users to change that color.  As mentioned in the <a href="https://community.notepad-plus-plus.org/topic/24314/hide-fold-lines">Hide Fold Lines</a> discussion, there may be messages that plugins can send – that topic had an example of <em>hidden</em> lines, but I was able to find an equivalent for the fold line: the PythonScript plugin could send</p>
<pre><code>editor.setElementColour(ELEMENT.FOLD_LINE, (0,0,255,255))
</code></pre>
<p dir="auto">where the color is <code>(RED,GREEN,BLUE,ALPHA)</code> where <code>ALPHA</code> should be 255</p>
<p dir="auto">here’s the results of me running that command in PythonScript 3:<br />
<img src="/assets/uploads/files/1736035368984-dd61ca72-575e-4a11-92d2-440a75a20b09-image.png" alt="dd61ca72-575e-4a11-92d2-440a75a20b09-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">and then I changed it to GREEN instead of BLUE:</p>
<pre><code>editor.setElementColour(ELEMENT.FOLD_LINE, (0,255,0,255))
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1736035416984-cd974739-3173-49bb-b3f3-8859f56ffe3b-image.png" alt="cd974739-3173-49bb-b3f3-8859f56ffe3b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And hiding it completely can be done by either setting the <code>ALPHA</code> to 0, or <code>editor.setFoldFlags(0)</code> in PythonScript (or the equivalent, as shown in that other discussion, in NppExec or other such plugin)</p>
<p dir="auto">This feature was <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12751" rel="nofollow ugc">requested in 2023</a>, but neither the developer nor any other volunteers have apparently put in a PR to implement it.  I’ve just “bumped” the discussion, with links to a few related discussions here; if you’d like to go upvote that, and/or put in your 2cents, that might encourage someone to put in the effort.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98971</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98971</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 05 Jan 2025 00:12:41 GMT</pubDate></item></channel></rss>