<?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[user defined languaje dialog, multiline comments]]></title><description><![CDATA[<p dir="auto">Hi, I can`t configure a custom language succesfully. I want configure multiline comments with the property “force at beginning of line”. It’s possible to add this improvement to next version of notepad++?</p>
<p dir="auto">Example: my custom code has comments that start with character X at beginning of a line, and end with character Z in any position at another line.</p>
<p dir="auto">thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23975/user-defined-languaje-dialog-multiline-comments</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 05:13:54 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23975.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Jan 2023 19:42:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to user defined languaje dialog, multiline comments on Thu, 05 Jan 2023 17:26:19 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> Thank you! Using EnhanceAnyLexer plugin  In 10 minutes I colored my special multiline comments! Good solution!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83049</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83049</guid><dc:creator><![CDATA[carlos Charly]]></dc:creator><pubDate>Thu, 05 Jan 2023 17:26:19 GMT</pubDate></item><item><title><![CDATA[Reply to user defined languaje dialog, multiline comments on Wed, 04 Jan 2023 20:08:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/carlos-charly" aria-label="Profile: carlos-Charly">@<bdi>carlos-Charly</bdi></a> ,</p>
<p dir="auto">That’s not the way that UDL is currently implemented.</p>
<p dir="auto">You are free to submit a feature request issue (we fellow users in the Community cannot make codebase changes for you; you can see our FAQ for how to make official feature requests), but UDL hasn’t had any feature requests implemented in years, so don’t expect it by the next Notepad++ release (or, sadly, likely ever).  The developer’s mindset seems to be that “it’s good enough”.</p>
<p dir="auto">For anything more complex than Notepad++ UDL can handle right now, the developer seems to expect you to write a custom <a href="https://npp-user-manual.org/docs/plugins/#building-a-lexer-plugin" rel="nofollow ugc">lexer plugin</a> for your language, which has the full power of your coding skills to apply whatever syntax highlighting rules you would like to implement.</p>
<p dir="auto">Do you <em>really</em> need it to “only at the beginning of the line”?  Because if character X is never used for anything else in your language, it could still be the multi-line comment start-character.</p>
<p dir="auto">If it does <em>need</em> to be “only at the beginning of the line”, you could use the plugin EnhanceAnyLexer to add a regex for your current language.  Then use <strong>Plugins &gt; EnhanceAnyLexer &gt; Enhance Current Language</strong> to add It would look something like</p>
<pre><code class="language-ini">[YourUdlNameHere]
0x00CC00 = (?s)^X.*?Z
</code></pre>
<p dir="auto">The regex starts with <code>(?s)</code>, which says to allow it to match across multiple lines, the <code>^X</code> says “first comment line must start with X, no preceding text or whitespace”. <code>.*?</code> says “match everything (even newlines) until first occurrence of next part of regex”, and <code>Z</code> says “Z will end the multiline comment”</p>
<p dir="auto">This shows that regex in action:<br />
<img src="/assets/uploads/files/1672862775928-36ba5347-ecf6-4e9c-8df8-488c7e48ed7e-image.png" alt="36ba5347-ecf6-4e9c-8df8-488c7e48ed7e-image.png" class=" img-fluid img-markdown" /><br />
The first <em>starts</em> with <code>X</code>, so it will make it light green comment until the next Z, even across multiple lines.  The second <code>X</code> is not at the beginning of the line, so it doesn’t start a multi-line comment.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83026</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83026</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 04 Jan 2023 20:08:12 GMT</pubDate></item></channel></rss>