<?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 Language - BASIC comments]]></title><description><![CDATA[<p dir="auto">I’ve been writing and maintaining some code for an ancient piece of hardware that is coded in a <a href="http://vestatech.com/wp-content/uploads/2012/03/VMTBasic.pdf" rel="nofollow ugc">proprietary version of BASIC</a>. Notepad++, with its UDL features, has been a godsend for making this task productive.</p>
<p dir="auto">One issue has been bugging me, however. This version of BASIC only supports marking comments with the REM keyword. I’ve defined a comment line style with REM as the “Open” tag. This mostly works, except it also picks up any time the letters REM appear together elsewhere in the code (including in the middle of a variable name) and thinks that’s the beginning of a comment.</p>
<p dir="auto">Is there any way to tell Notepad++ to require REM to appear as a standalone word in order to be recognized as a comment?</p>
<p dir="auto">I’m guessing the answer is “no,” in which case I’d like to make that a feature request.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/12452/user-defined-language-basic-comments</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 14:55:58 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/12452.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Oct 2016 04:11:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to User Defined Language - BASIC comments on Fri, 07 Oct 2016 01:44:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steve555" aria-label="Profile: Steve555">@<bdi>Steve555</bdi></a></p>
<p dir="auto">I see what you mean - what comes into my mind is<br />
either you make REM unique by adding a char like semicolon,<br />
hopefully this is allowed by the compiler, or you make sure that<br />
REM is the only UPPERCASE version of the source code and disable<br />
IgnoreCase option.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/18265</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18265</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 07 Oct 2016 01:44:24 GMT</pubDate></item><item><title><![CDATA[Reply to User Defined Language - BASIC comments on Thu, 06 Oct 2016 03:38:46 GMT]]></title><description><![CDATA[<p dir="auto">@PeterCJ-AtWork<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a></p>
<p dir="auto">Thanks for the suggestions. I tried both of those.</p>
<p dir="auto">☑ <strong>Force at beginning of line</strong> doesn’t cover cases when <code>REM</code> is indented (not in the first column).</p>
<p dir="auto">☑ <strong>Allow preceeding whitespace</strong> takes care of that, but it misses cases where <code>REM</code> appears at the end of a line, like this:</p>
<pre><code>LCD_Display( "Hello World" )  : REM Write text to the LCD
</code></pre>
<p dir="auto">☑ <strong>Allow anywhere</strong> is the only option that catches all the comments, but it also catches things that aren’t comments, like:</p>
<pre><code>PressureMultiplier = 3.14159 * Infinity + 42
</code></pre>
<p dir="auto"><em>* Real variable name in my code. Rest obviously contrived.</em></p>
<p dir="auto">The keywords lists support keywords with whitespace by enclosing them in single quotes, but that doesn’t appear to be supported for comments.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/18239</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18239</guid><dc:creator><![CDATA[Steve555]]></dc:creator><pubDate>Thu, 06 Oct 2016 03:38:46 GMT</pubDate></item><item><title><![CDATA[Reply to User Defined Language - BASIC comments on Tue, 04 Oct 2016 16:41:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steve555" aria-label="Profile: Steve555">@<bdi>Steve555</bdi></a></p>
<p dir="auto">what about “allow preceding whitespace flag”, seems to work.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/18209</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18209</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Tue, 04 Oct 2016 16:41:07 GMT</pubDate></item><item><title><![CDATA[Reply to User Defined Language - BASIC comments on Tue, 04 Oct 2016 13:07:32 GMT]]></title><description><![CDATA[<p dir="auto">On the <code>Comment &amp; Number</code> tab of the UDL, just above where you define the <code>Comment Line Style</code>, there is an option <code>Line comment position</code> which needs to be set to ☑ <code>Force at beginning of line</code>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/18207</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18207</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 04 Oct 2016 13:07:32 GMT</pubDate></item></channel></rss>