<?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[SQL syntax color does not support double commenting]]></title><description><![CDATA[<p dir="auto">I have comments in my SQL like <code>/* --- comment ---*/</code> but I also sometimes comment out blocks of script like -</p>
<pre><code>/*
/*--- comment ---*/
SELECT . . .
*/
</code></pre>
<p dir="auto">The above SQL is shown by syntax coloring as active.<br />
-–</p>
<p dir="auto"><em>moderator added code markdown around text; please don’t forget to <a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">use the <code>&lt;/&gt;</code> button to mark example text as “code”</a> so that characters don’t get changed by the forum</em></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24223/sql-syntax-color-does-not-support-double-commenting</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 02:29:57 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24223.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Mar 2023 07:50:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SQL syntax color does not support double commenting on Tue, 14 Mar 2023 18:15:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> said in <a href="/post/84834">SQL syntax color does not support double commenting</a>:</p>
<blockquote>
<p dir="auto">PR was just added to master.  Looks like next version will have it, or you can test the artifact right now.</p>
</blockquote>
<p dir="auto"><img src="/assets/uploads/files/1678817673334-86dd6740-3ff4-499f-b740-0e710a2568e5-image.png" alt="86dd6740-3ff4-499f-b740-0e710a2568e5-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Looks like it’s working …</p>
<p dir="auto"><strong>NOTE</strong>: Customized theme in the screenshot.  The ‘stylers.model.xml’ has been updated for the default theme to include MS-SQL.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84843</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84843</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Tue, 14 Mar 2023 18:15:38 GMT</pubDate></item><item><title><![CDATA[Reply to SQL syntax color does not support double commenting on Tue, 14 Mar 2023 11:29:16 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/84717">SQL syntax color does not support double commenting</a>:</p>
<blockquote>
<p dir="auto">Nice.  I am not going to bother with the script on this one, then. :-)</p>
</blockquote>
<p dir="auto">PR was just added to master.  Looks like next version will have it, or you can test the artifact right now.</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/commit/01bbebf825acaa458af7afaa27b0f6269310451b" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/commit/01bbebf825acaa458af7afaa27b0f6269310451b</a></p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84834</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84834</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Tue, 14 Mar 2023 11:29:16 GMT</pubDate></item><item><title><![CDATA[Reply to SQL syntax color does not support double commenting on Thu, 09 Mar 2023 00:23:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> ,</p>
<p dir="auto">Nice.  I am not going to bother with the script on this one, then. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84717</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84717</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 09 Mar 2023 00:23:58 GMT</pubDate></item><item><title><![CDATA[Reply to SQL syntax color does not support double commenting on Wed, 08 Mar 2023 23:57:16 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/84715">SQL syntax color does not support double commenting</a>:</p>
<blockquote>
<p dir="auto">it’s that Notepad++ has chosen to always use the standard-SQL lexer</p>
</blockquote>
<p dir="auto">@Jan-N-Pedersen</p>
<p dir="auto">May not have to wait too long:</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13184" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13184</a></p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84716</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84716</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Wed, 08 Mar 2023 23:57:16 GMT</pubDate></item><item><title><![CDATA[Reply to SQL syntax color does not support double commenting on Wed, 08 Mar 2023 22:38:38 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">It cannot be fixed in Notepad++ until it is fixed in Scintilla.  I have put in a <a href="https://sourceforge.net/p/scintilla/bugs/2381/" rel="nofollow ugc">bug report with Scintilla</a>,</p>
</blockquote>
<p dir="auto">It turns out that Scintilla/Lexilla has a separate lexer for MS-SQL compared to the other SQL variants.  In SciTE, if I enable that lexer, it handles the nested comments okay.  So it’s not a bug, it’s that Notepad++ has chosen to always use the standard-SQL lexer.</p>
<p dir="auto">Which means, if you are willing to install the PythonScript plugin, I could give you a script (maybe tomorrow) that would enable the MS-SQL lexer for you, and switch from SQL to MS-SQL on your SQL files.  So if you are interested and willing to install that plugin, let me know.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84715</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84715</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 08 Mar 2023 22:38:38 GMT</pubDate></item><item><title><![CDATA[Reply to SQL syntax color does not support double commenting on Wed, 08 Mar 2023 14:17:25 GMT]]></title><description><![CDATA[<p dir="auto">@Jan-N-Pedersen ,</p>
<p dir="auto">Notepad++ uses a library called “Scintilla” for the syntax highlighting.  After discovering that <a href="https://www.sqlshack.com/an-overview-of-sql-comments/#:~:text=Nested%20SQL%20Comment,(%2F*)%20comment%20mark." rel="nofollow ugc">SQL does indeed allow nested comments</a>, I just went and verified that the Scintilla library that we use does <em>not</em> correctly parse nested comments.</p>
<p dir="auto">It cannot be fixed in Notepad++ until it is fixed in Scintilla.  I have put in a <a href="https://sourceforge.net/p/scintilla/bugs/2381/" rel="nofollow ugc">bug report with Scintilla</a>, but there’s no guarantee they will fix it.  If they do, then it may be a few Notepad++ versions before N++ has updated to the newest Scintilla.</p>
<p dir="auto">-—</p>
<h3>Useful References</h3>
<ul>
<li><a href="https://community.notepad-plus-plus.org/topic/21965/please-read-before-posting">Please Read Before Posting</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">Formatting Forum Posts</a></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/84694</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84694</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 08 Mar 2023 14:17:25 GMT</pubDate></item></channel></rss>