<?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[Bug or problem with block comment in another block comment]]></title><description><![CDATA[<p dir="auto">Hi All</p>
<p dir="auto">i found some problem with block comment.<br />
So.<br />
{} blok comment</p>
<p dir="auto"><img src="/assets/uploads/files/1612704105846-307136a6-53cf-4d1b-9837-ac18139f703f-image.png" alt="307136a6-53cf-4d1b-9837-ac18139f703f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">add block comment</p>
<p dir="auto"><img src="/assets/uploads/files/1612704159145-608f4b97-8336-4f40-b7d9-e7cb904389b7-image.png" alt="608f4b97-8336-4f40-b7d9-e7cb904389b7-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">its fine<br />
but if a add another  block comment over exist.</p>
<p dir="auto"><img src="/assets/uploads/files/1612704254384-7ee2f9c4-ba55-41b9-8add-52411ba159be-image.png" alt="7ee2f9c4-ba55-41b9-8add-52411ba159be-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">do not worked.</p>
<p dir="auto">if block comment include another block comment. it is not working.</p>
<p dir="auto">Sorry for may english.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20702/bug-or-problem-with-block-comment-in-another-block-comment</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 21:47:54 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20702.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Feb 2021 13:26:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bug or problem with block comment in another block comment on Sun, 07 Feb 2021 18:46:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21126">@Andrey</a> ,</p>
<p dir="auto">What language lexer has block comments like that?  Or are you using a UDL?</p>
<p dir="auto">And does that language actually allow nested comments?  Some languages do, some don’t, and some leave it up to a compiler implementation decision.</p>
<p dir="auto">If the language really allows it, but the built-in lexer allows it, then technically, that’s a bug in the lexer.  However, the lexers that ship with Notepad++ are part of the Scintilla code library that Notepad++ uses, so it would be a long, unlikely process to get it fixed (report the bug to Scintilla; wait for it to maybe get fixed; request Notepad++ update its Scintilla; wait for likely many years before Notepad++ <em>does</em> update its Scintilla, if ever)</p>
<p dir="auto">If you are using a UDL, that lexer uses a very simple algorithm, which was not built to handle nested comments (and even if you submitted an issue on it, the UDL lexer, even though technically controlled by Notepad++ unlike the other lexers, hasn’t had any significant improvements in years)</p>
<p dir="auto">You can add extra highlighting to a builtin lexer <em>or</em> to a User Defined Language (UDL) using regexes via the script <code>EnhanceAnyLexer.py</code> that <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> shares <a href="https://github.com/Ekopalypse/NppPythonScripts/blob/master/npp/EnhanceAnyLexer.py" rel="nofollow ugc">in his github repo</a>, but you might have to tweak his code to be able to handle nested comments.</p>
<p dir="auto">My general coding practice on nested comments: don’t.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/62575</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/62575</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 07 Feb 2021 18:46:08 GMT</pubDate></item></channel></rss>