<?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 line style : long dash ( – ) symbol]]></title><description><![CDATA[<p dir="auto">I’m trying to use the long dash ( – ) symbol. (copy from MS WORD – )<br />
The style doesn’t work. How can I fix it?<br />
A short dash - works.<br />
v8.4.4</p>
<p dir="auto"><img src="/assets/uploads/files/1658697735052-image-087.png" alt="Image 087.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23296/udl-comment-line-style-long-dash-symbol</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 02:21:23 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23296.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 24 Jul 2022 21:25:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UDL comment line style : long dash ( – ) symbol on Mon, 25 Jul 2022 06:54:03 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the hint, I think the EnhanceAnyLexer plugin is what I need and it will help. It would be better to improve UDL and include any UTF character or even emoji there, and even better its own regex rules.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78655</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78655</guid><dc:creator><![CDATA[Mustang Mustang]]></dc:creator><pubDate>Mon, 25 Jul 2022 06:54:03 GMT</pubDate></item><item><title><![CDATA[Reply to UDL comment line style : long dash ( – ) symbol on Sun, 24 Jul 2022 22:08:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mustang-mustang" aria-label="Profile: Mustang-Mustang">@<bdi>Mustang-Mustang</bdi></a> ,</p>
<p dir="auto">Weird.  In the comment open/close, <code>–</code> does not work.  I just tried some experiments: For a UTF8-encoded file, <code>–</code> works as a keyword, but not as folding or comment or operator or delimiter.</p>
<p dir="auto">However, if you change your file to ANSI encoding (because <code>–</code> is a character in Win-1252, which for the US is the default “ANSI” character set), then it will work in any of those slots.</p>
<p dir="auto">This is because the UDL was defined with ANSI encoding in mind, and despite years of requests to update the UDL lexer to allow any unicode character and/or to follow the encoding of the current file instead of assuming ANSI-only, that feature has never been added to UDL.</p>
<p dir="auto">So, you can “fix” it by encoding your file as ANSI.  But that’s an evil fix.</p>
<p dir="auto">I believe you can use any properly encoded character in the Enhance Any Lexer plugin.  Yep, it recognizes <code>–</code> properly.  Install that plugin, and do a section that’s named after your active udl (use a section header of <code>[aaa4]</code> in your example), and define a <code>color = regex</code> pair – for example, <code>0x0000FF = –.*?–</code> will make everything from – to – show up red when aaa4 UDL is active.  (Enhance Any Lexer doesn’t do background colors, but if you want it to change only the foreground, that will work for you)<br />
<img src="/assets/uploads/files/1658700464457-f69c109a-d751-41dc-aa5b-b1a50a81ab67-image.png" alt="f69c109a-d751-41dc-aa5b-b1a50a81ab67-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/78650</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78650</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 24 Jul 2022 22:08:00 GMT</pubDate></item></channel></rss>