<?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[comment symbol @ empty lines]]></title><description><![CDATA[<p dir="auto">Hello, I defined a language using own comment symbols. When I select bigger part of the document, empty lines don’t receive a comment symbol. Is there any workaround? Any help is welcome.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23366/comment-symbol-empty-lines</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 18:50:58 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23366.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Aug 2022 05:41:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to comment symbol @ empty lines on Fri, 12 Aug 2022 09:58:37 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!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79127</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79127</guid><dc:creator><![CDATA[qwertz_1234]]></dc:creator><pubDate>Fri, 12 Aug 2022 09:58:37 GMT</pubDate></item><item><title><![CDATA[Reply to comment symbol @ empty lines on Wed, 10 Aug 2022 13:12:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qwertz_1234" aria-label="Profile: qwertz_1234">@<bdi>qwertz_1234</bdi></a> ,</p>
<p dir="auto">There are two problems with your UDL Comment definitions:</p>
<p dir="auto">Problem number 1: Your Block Comment (Blockkommentare) definition is invalid, since there is no Close indicator (Kommentarende), and blocks continue to the end-of-file if there is no matching close-indicator</p>
<p dir="auto">Problem number 2: Your Comment Line (Zeilenkommentare) definition conflicts with your Block Comment, since both have the same Open indicator (Kommentaranfang).  Comment Lines don’t <em>need</em> Close indicators (though they are obviously allowed), because they will automatically close at the end of the line if there isn’t a Close defined.</p>
<p dir="auto">In your situation, problem number 2 cancels problem number 1, because Comment Line takes precedence over Comment Block, so your comments are being treated as Comment Line, and thus automatically end at the end of each line.  But if you give a different Style through the Styler button (Stil …) on the two different comment types, you will see that it’s being interpreted as a Comment Line, not a Block Comment.</p>
<blockquote>
<p dir="auto">Is there any automatic option to comment many lines with and without characters?</p>
</blockquote>
<p dir="auto">For a built-in language’s lexer, if you use <strong>Edit &gt; Comment/Uncomment</strong>, you can apply or remove single-line-comment or comment-block indicators to your selection.  However, that’s for the built-in languages; UDLs are separate, and those menu actions do not read the comment characters from the active UDL definition, unfortunately. I forget whether there’s an alternate way to do the equivalent for UDLs… I might do some experiments, and report back later, if no one else beats me to it.</p>
<p dir="auto">But the easy way is to use Column Selection Mode (click at the top-left, then either Alt+DragMouseCursor or Alt+ArrowKeys to select a rectangle): If you column select a N-row x 0-column rectangle at the beginning of the lines you want to comment, you could do that selection and then type dollarsign-space (<code>$ </code>) and it will comment all those.</p>
<p dir="auto"><img src="/assets/uploads/files/1660136971493-2180d9bd-98d7-40d6-b722-eb1ac0050ba1-image.png" alt="2180d9bd-98d7-40d6-b722-eb1ac0050ba1-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">similarly, Column Select the dollarsign-space on all those lines and type BACKSPACE or DEL and it will uncomment them.</p>
<p dir="auto"><img src="/assets/uploads/files/1660137054132-1a89fcef-afdd-4a52-b764-3cb8db8e0cb9-image.png" alt="1a89fcef-afdd-4a52-b764-3cb8db8e0cb9-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/79051</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79051</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 10 Aug 2022 13:12:17 GMT</pubDate></item><item><title><![CDATA[Reply to comment symbol @ empty lines on Wed, 10 Aug 2022 11:26:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> the text document will be read by an FE-Solver. The Keywords contain several lines, including also empty lines which gives default values to solver. Modifications results in commenting several keywords. it is neccessary to comment empty lines. Usually $ starts a comment, in the above example the $ should appear also in line 2 for example. Is there any automatic option to comment many lines with and without characters?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79049</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79049</guid><dc:creator><![CDATA[qwertz_1234]]></dc:creator><pubDate>Wed, 10 Aug 2022 11:26:51 GMT</pubDate></item><item><title><![CDATA[Reply to comment symbol @ empty lines on Wed, 10 Aug 2022 06:35:46 GMT]]></title><description><![CDATA[<p dir="auto">@om_mani_pad</p>
<p dir="auto">I’m sorry, but I don’t understand how the screenshot relates to the post you made. I don’t see an <code>@</code> symbol defined.<br />
Also, are you sure it makes sense to define <code>$</code> as an identifier for a comment line and a block comment?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79045</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79045</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 10 Aug 2022 06:35:46 GMT</pubDate></item><item><title><![CDATA[Reply to comment symbol @ empty lines on Wed, 10 Aug 2022 06:12:44 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1660111922487-69f81ffe-e461-465c-84e7-0cda064bb5ce-image.png" alt="69f81ffe-e461-465c-84e7-0cda064bb5ce-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1660111957006-999abd7a-976d-482c-936a-69eeb219f759-image.png" alt="999abd7a-976d-482c-936a-69eeb219f759-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/79044</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79044</guid><dc:creator><![CDATA[qwertz_1234]]></dc:creator><pubDate>Wed, 10 Aug 2022 06:12:44 GMT</pubDate></item></channel></rss>