<?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[UDL Comment Initialization with Whitespace]]></title><description><![CDATA[<p dir="auto">Hi! I’m trying to make a UDL for MCNP (Monte Carlo N-Particle Transport Code), and I’m running into issues setting up comments. In MCNP, comment lines typically begin with the letter “c” (not case-sensitive) and are followed by a space before the actual content of the comment begins. This is only really an issue due to the fact that other commands that show up at the beginning of lines start with the letter “c” and keep getting commented out when they should not. Does anyone know how I would specify to look for both a “c” and a space to initialize a comment line?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20978/udl-comment-initialization-with-whitespace</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 21:37:19 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20978.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Apr 2021 22:56:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UDL Comment Initialization with Whitespace on Thu, 01 Apr 2021 23:49:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21645">@John-Smith-3</a> ,</p>
<p dir="auto">UDL is nice, but it cannot handle every possible condition.  I don’t think it will do that natively.</p>
<p dir="auto">However, you can add extra highlighting 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> – so with installing the PythonScript plugin and using the linked solution, you could define a regex that will color text matching <code>r'c\h+'</code> (raw string, with c followed by horizontal space), or similar, in some way to indicate a cmoment.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64580</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64580</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 01 Apr 2021 23:49:35 GMT</pubDate></item></channel></rss>