<?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[Folding function works strangely from version 7.7.]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">Folding function works strangely from version 7.7.<br />
Please see below image.<br />
<img src="/assets/uploads/files/1611018384982-npp_fold_error.png" alt="npp_fold_error.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20614/folding-function-works-strangely-from-version-7-7</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 01:45:43 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20614.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Jan 2021 01:11:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Folding function works strangely from version 7.7. on Thu, 21 Jan 2021 00:27:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a><br />
Thank you for your hard work. :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62080</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62080</guid><dc:creator><![CDATA[Hy Yang]]></dc:creator><pubDate>Thu, 21 Jan 2021 00:27:04 GMT</pubDate></item><item><title><![CDATA[Reply to Folding function works strangely from version 7.7. on Thu, 21 Jan 2021 00:25:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a><br />
Thank you for your advice.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62079</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62079</guid><dc:creator><![CDATA[Hy Yang]]></dc:creator><pubDate>Thu, 21 Jan 2021 00:25:37 GMT</pubDate></item><item><title><![CDATA[Reply to Folding function works strangely from version 7.7. on Tue, 19 Jan 2021 18:48:19 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20934">@hy-yang</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a> and <strong>All</strong>,</p>
<p dir="auto">I don’t think that there is <strong>any</strong> change in <strong>folding</strong> behavior, concerning <strong><code>HTML</code></strong> Files</p>
<p dir="auto">But, while doing some <strong>tests</strong>, I notice some <strong>weird</strong> things about <strong>folding</strong> :</p>
<p dir="auto">The <strong><code>HTML</code></strong> text, ( certainly <strong>not</strong> valid ! ) which will be used for <strong>tests</strong> is :</p>
<pre><code class="language-HTML">
&lt;script src="JS/jquery.min.js"&gt;&lt;/script&gt;
&lt;p&gt;This is a paragraph.&lt;/p&gt;
&lt;p&gt;This is a second paragraph.&lt;/p&gt;
&lt;script charset="utf-8"&gt;
    $(document).ready(function() {
        alert('1');
    });

    function test(val) {
        alert('2');
    }
&lt;/script&gt;
</code></pre>
<p dir="auto">I simply added an <strong>empty</strong> line at the very beginning and <strong>two paragraph</strong> attributes between the two <strong><code>&lt;script...&gt;</code></strong> lines</p>
<hr />
<p dir="auto">Now, follow these steps :</p>
<ul>
<li>
<p dir="auto">Start Notepad++ <strong><code>v7.9.2</code></strong></p>
</li>
<li>
<p dir="auto">Open a <strong>new</strong> tab</p>
</li>
<li>
<p dir="auto">Run the option <strong><code>Language &gt; H &gt; HTML</code></strong></p>
</li>
</ul>
<p dir="auto">=&gt; In the <strong>Status Bar</strong>, you should see, at the <strong>leftmost</strong> part, the indication <strong><code>Hyper Text MArkup Language file</code></strong></p>
<ul>
<li><strong>Paste</strong> the <strong><code>HTML</code></strong> text, above, in this <strong>new</strong> tab</li>
</ul>
<p dir="auto">=&gt; You should get the text seen in the <strong><code>Fig. A</code></strong>, below. Note that the <strong>folding</strong> between lines <strong><code>5</code></strong> and <strong><code>13</code></strong> seems <strong>identical</strong> to the one that <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20934">@hy-yang</a> noticed in <strong>old</strong> N++ version <strong><code>7.6.6</code></strong></p>
<ul>
<li>Delete the <strong><code>&lt;</code></strong> symbol, <strong>beginning</strong> the line <strong><code>2</code></strong> and, <strong>immediately</strong> rewrite it</li>
</ul>
<p dir="auto">=&gt; Folding has <strong>not</strong> changed and looks like in the <strong><code>Fig A</code></strong>  below !</p>
<ul>
<li>Now, delete the <strong><code>&lt;</code></strong> symbol, <strong>beginning</strong> the line <strong><code>3</code></strong> and, <strong>immediately</strong> rewrite it</li>
</ul>
<p dir="auto">=&gt; The folding, in the <strong><code>Fig B</code></strong>, is <strong>identical</strong> to the <strong><code>Fig A</code></strong> ( between lines <strong><code>5</code></strong> and <strong><code>13</code></strong> )</p>
<ul>
<li>Then, delete the <strong><code>&lt;</code></strong> symbol, <strong>beginning</strong> the line <strong><code>5</code></strong> and, <strong>immediately</strong> rewrite it</li>
</ul>
<p dir="auto">=&gt; This time, in the <strong><code>Fig C</code></strong> below, folding has a <strong>better</strong> look, with the <strong><code>Test</code></strong> function considered as a <strong>specific</strong> section. Note, however, that this folding is <strong>not</strong>, exactly, what <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20934">@hy-yang</a> and me expect to, yet !</p>
<ul>
<li>Finally delete the <strong><code>&lt;</code></strong> symbol, <strong>beginning</strong> the line <strong><code>4</code></strong> and, <strong>immediately</strong> rewrite it</li>
</ul>
<p dir="auto">=&gt; At last, the resulting <strong>folding</strong>, in the <strong><code>Fig D</code></strong> below, is the <strong>correct</strong> and <strong>expected</strong> one ;-))</p>
<p dir="auto">If, instead of working with the <strong><code>&lt;</code></strong> symbol, <strong>beginning</strong> the lines, we would had chosen the <strong><code>&gt;</code></strong> symbol, <strong>ending</strong> each line, we would had got, the <strong>same</strong> folding behavior !</p>
<p dir="auto"><img src="/assets/uploads/files/1611078229884-83f04c6a-d81f-492c-8f9b-022b121bf042-image.png" alt="83f04c6a-d81f-492c-8f9b-022b121bf042-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">IMPORTANT : In the picture above, I, <strong>intentionally</strong>, changed the <strong>default</strong> background of <strong>current</strong> line  ( for color <strong><code>FF C0 C0</code></strong> ) in order to <strong>easily</strong> locate the line where the <strong><code>&lt;</code></strong> symbol is <strong>deleted</strong> and <strong>rewritten</strong> at once !</p>
<hr />
<p dir="auto">So, seemingly, <strong>modifying</strong> the line, right above the <strong><code>&lt;script&gt;.........&lt;/script&gt;</code></strong> section restores the <strong>correct</strong> folding in that section ?</p>
<p dir="auto">So, guys, just <strong>experiment</strong> !</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
<p dir="auto">Sorry, I forgot to give my <strong>debug-info</strong> :</p>
<pre><code class="language-z">Notepad++ v7.9.2   (32-bit)
Build time : Dec 31 2020 - 03:58:36
Path : D:\@@\792\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Microsoft Windows XP (32-bit) 
OS Build : 2600.0
Current ANSI codepage : 1252
Plugins : BetterMultiSelection.dll DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll 
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/62003</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62003</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 19 Jan 2021 18:48:19 GMT</pubDate></item><item><title><![CDATA[Reply to Folding function works strangely from version 7.7. on Tue, 19 Jan 2021 01:52:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20934">@Hy-Yang</a> ,</p>
<p dir="auto">In v7.7, Notepad++ upgraded an underlying library, Scintilla, which handles things like the code folding.  Many things about Scintilla improved with the upgrade.  However, you have found an instance where it apparently doesn’t handle folding in mixed file types (html+is) the way you would like.</p>
<p dir="auto">Notepad++ is not going to downgrade Scintilla to go back to the way you like.  As a result, you might choose to just stick with v7.6.6, which works the way you like, and just turn off auto update</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61991</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61991</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 19 Jan 2021 01:52:30 GMT</pubDate></item></channel></rss>