<?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[Syntax highlighting: works for a time, then (irreproducibly) &quot;bleeds&quot;, only restarting npp fixes it]]></title><description><![CDATA[<p dir="auto">For years I had no problems with syntax highlighting in a user defined language. A few months ago I had to re-install npp and in v7.9.1 and v7.9.3 I have the following behaviour: for a certain time everything behaves as normal. After a while, seemingly randomly, part of my code is coloured as a comment (code which is not a comment).</p>
<p dir="auto">Sometimes it is only the line that I am editing, sometimes it is from the cursor to the next /* in my code.</p>
<p dir="auto">The only remedy I found is exiting npp, restarting it and typically within half an hour the problem reoccurs.</p>
<p dir="auto">Has anyone experienced the same? Could it be caused by the user defined language?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20755/syntax-highlighting-works-for-a-time-then-irreproducibly-bleeds-only-restarting-npp-fixes-it</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 09:18:06 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20755.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Feb 2021 15:50:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Syntax highlighting: works for a time, then (irreproducibly) &quot;bleeds&quot;, only restarting npp fixes it on Wed, 14 Apr 2021 00:02:27 GMT]]></title><description><![CDATA[<p dir="auto">Since experimenting further with the AutohotKey UDL I have found that this syntax “bleeding” can be limited / minimised / corrected by adding a space to the end of lines (I normally am a heavy user of tabs) especially those lines which seem to end a certain type of highlighting e.g. comments or lines with delimited strings in them.</p>
<p dir="auto">I also made another discovery, that a tab can be used as a delimiter in UDL. You can enter it by pressing Control+Tab between 2 spaces e.g. ((space tab space EOL)).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64949</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64949</guid><dc:creator><![CDATA[ludamo 0]]></dc:creator><pubDate>Wed, 14 Apr 2021 00:02:27 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax highlighting: works for a time, then (irreproducibly) &quot;bleeds&quot;, only restarting npp fixes it on Mon, 22 Feb 2021 23:50:29 GMT]]></title><description><![CDATA[<p dir="auto">Well I sympathize with you, my AutoHotkey folding was all over the place as well as the original issue and so I tried a few random things without much success BUT I did have some improvement / success with doing 2 last things:</p>
<ol>
<li>moving my userDefinedLang.xml file from …AppData\Roaming\Notepad++\ (I think - although it could have been in C:\Program Files\Notepad++) to …AppData\Roaming\Notepad++\userDefineLangs\ (as well as splitting the individual UDLs into separate files - I had 2 in the original file)</li>
<li>Unselecting “Allow folding in comments” then restarting Notepad++ then Selecting it again.</li>
</ol>
<p dir="auto">I haven’t used it enough since to say whether things are cured but here’s hoping.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63141</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63141</guid><dc:creator><![CDATA[ludamo 0]]></dc:creator><pubDate>Mon, 22 Feb 2021 23:50:29 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax highlighting: works for a time, then (irreproducibly) &quot;bleeds&quot;, only restarting npp fixes it on Mon, 22 Feb 2021 08:29:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21211">@El-Greco</a><br />
Well, using ((EOL)) seems to improve it, but the issue still remains (although the behaviour is slightly different). I wonder, I am using the same UDL as before, with a much older version of npp (v6.x.y, I forgot which one) without ever having this problem. This problem started when I updated to npp v7.9.1 and v7.9.3 behaves the same.<br />
The CTRL+R shortcut is a good one, then at least I can reset the view.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63107</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63107</guid><dc:creator><![CDATA[El Greco]]></dc:creator><pubDate>Mon, 22 Feb 2021 08:29:54 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax highlighting: works for a time, then (irreproducibly) &quot;bleeds&quot;, only restarting npp fixes it on Thu, 18 Feb 2021 09:09:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21218">@ludamo-0</a><br />
Very interesting suggestion, I have implemented it and so far, so good…!<br />
(although according to Murphy’s Law it is dangerous to mention it)<br />
I will try it now for a week and then report about it here.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63026</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63026</guid><dc:creator><![CDATA[El Greco]]></dc:creator><pubDate>Thu, 18 Feb 2021 09:09:58 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax highlighting: works for a time, then (irreproducibly) &quot;bleeds&quot;, only restarting npp fixes it on Thu, 18 Feb 2021 02:07:40 GMT]]></title><description><![CDATA[<p dir="auto">I have had this problem for a while with AutoHotkey UDL and only recently tried to fix it. Going to the UDL Dialog and inserting ((EOL)) in the Close: box for single line comments seems to have helped - though I have only been using it for a day or two since the change. But you can see in the Notepad++ margin a fold line appear or disappear depending on the setting. Also using (( " EOL )) in the Close: box for text on the Operators &amp; Delimiters tab may also help though I haven’t tried this.<br />
If this all fails I found the Ctrl+R (Reload from Disk) corrected the highlighting.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63024</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63024</guid><dc:creator><![CDATA[ludamo 0]]></dc:creator><pubDate>Thu, 18 Feb 2021 02:07:40 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax highlighting: works for a time, then (irreproducibly) &quot;bleeds&quot;, only restarting npp fixes it on Wed, 17 Feb 2021 15:59:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21211">@El-Greco</a> said in <a href="/post/63007">Syntax highlighting: works for a time, then (irreproducibly) "bleeds", only restarting npp fixes it</a>:</p>
<blockquote>
<p dir="auto">Could it be caused by the user defined language?</p>
</blockquote>
<p dir="auto">Yes, of course it could be - maybe a bug/feature!?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63011</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63011</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 17 Feb 2021 15:59:56 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax highlighting: works for a time, then (irreproducibly) &quot;bleeds&quot;, only restarting npp fixes it on Wed, 17 Feb 2021 15:58:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21211">@El-Greco</a></p>
<p dir="auto">hmm … sorry, obvious question, did the udl change as well?<br />
Mind sharing the UDL and some sample code?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63010</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63010</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 17 Feb 2021 15:58:33 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax highlighting: works for a time, then (irreproducibly) &quot;bleeds&quot;, only restarting npp fixes it on Wed, 17 Feb 2021 15:56:25 GMT]]></title><description><![CDATA[<p dir="auto">Thanx for the suggestion. I checked it, but it seems that I only use Windows CRLF in my code.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63009</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63009</guid><dc:creator><![CDATA[El Greco]]></dc:creator><pubDate>Wed, 17 Feb 2021 15:56:25 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax highlighting: works for a time, then (irreproducibly) &quot;bleeds&quot;, only restarting npp fixes it on Wed, 17 Feb 2021 15:53:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21211">@El-Greco</a></p>
<p dir="auto">Not exactly as you described, but kind of similar.<br />
For me, the problem was that my code had different EOLs, namely Windows CRLF and Linux LF.<br />
Once I made sure it was the same, I had no more problems.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63008</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63008</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 17 Feb 2021 15:53:50 GMT</pubDate></item></channel></rss>