<?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 and hex prefix]]></title><description><![CDATA[<p dir="auto">Notepad++ v8.4.4 x64</p>
<p dir="auto">I’m trying to create a UDL for a dialect of BASIC. This dialect uses the dollar sign as a prefix for hex numbers.</p>
<p dir="auto">In the Comment &amp; Number section I have:</p>
<p dir="auto"><strong>Prefix 2:</strong> $<br />
<strong>Extras 2:</strong> A B C D E F a b c d e f</p>
<p dir="auto">However this only works for numbers like:</p>
<p dir="auto">$1<br />
$2<br />
$123</p>
<p dir="auto">These don’t work:<br />
$a<br />
$A<br />
$4b, $48, $46, $43, $40, $3d, $3b</p>
<p dir="auto">What am I missing here?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23469/udl-and-hex-prefix</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 04:21:44 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23469.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Sep 2022 09:24:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UDL and hex prefix on Mon, 12 Sep 2022 16:27:30 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> said in <a href="/post/79708">UDL and hex prefix</a>:<br />
That has cracked it thanks. The ‘e’ issue was because I had</p>
<p dir="auto">end sub</p>
<p dir="auto">in Folding style 1 Close, I should have had</p>
<p dir="auto">‘end sub’</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79710</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79710</guid><dc:creator><![CDATA[Alan Bourke]]></dc:creator><pubDate>Mon, 12 Sep 2022 16:27:30 GMT</pubDate></item><item><title><![CDATA[Reply to UDL and hex prefix on Mon, 12 Sep 2022 15:01:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-bourke" aria-label="Profile: Alan-Bourke">@<bdi>Alan-Bourke</bdi></a> ,</p>
<p dir="auto">Per documentation <a href="https://ivan-radic.github.io/udl-documentation/numbers/" rel="nofollow ugc">here</a>:</p>
<ul>
<li>Prefix1 and Suffix2 only work with 0-9</li>
<li>Prefix2 only works with 0-9 and Extras1</li>
<li>Extras2 only works with 0-9 and Suffix1</li>
</ul>
<p dir="auto">To accomplish what I think you want, I would set</p>
<ul>
<li>Prefix2 = <code>$</code></li>
<li>Extras1 = <code>A B C D E F a b c d e f</code></li>
<li>Operators1 = <code>,</code></li>
</ul>
<p dir="auto">This will make the comma an operator which doesn’t require spaces.  Since comma <em>is</em> an operator in BASIC, this seems reasonable to me.  And it allows the comma to be a list separator inside your list of hex numbers</p>
<pre><code>DATA AS BYTE $7f, $82, $85
DATA AS BYTE $bb, $be, $c1
DATA AS BYTE $fe, $fe, $fe
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1662994730356-f7ca80a7-1586-4575-b910-a6d8ae20b3d1-image.png" alt="f7ca80a7-1586-4575-b910-a6d8ae20b3d1-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1662994842511-baec9f65-23b6-4e57-b7bc-da249cdf064a-image.png" alt="baec9f65-23b6-4e57-b7bc-da249cdf064a-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/79708</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79708</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 12 Sep 2022 15:01:12 GMT</pubDate></item><item><title><![CDATA[Reply to UDL and hex prefix on Mon, 12 Sep 2022 10:41:13 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><br />
Thanks, I’ve done that and added ‘,’ in Suffix 2 so that lists of numbers work, however it seems to be having an issue with the letter ‘e’ …</p>
<p dir="auto"><img src="/assets/uploads/files/1662979269184-2022-09-12-11_37_53-user-defined-language-v.2.1.0.12.png" alt="2022-09-12 11_37_53-User Defined Language v.2.1.0.12.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/79704</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79704</guid><dc:creator><![CDATA[Alan Bourke]]></dc:creator><pubDate>Mon, 12 Sep 2022 10:41:13 GMT</pubDate></item><item><title><![CDATA[Reply to UDL and hex prefix on Mon, 12 Sep 2022 09:42:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-bourke" aria-label="Profile: Alan-Bourke">@<bdi>Alan-Bourke</bdi></a> said in <a href="/post/79700">UDL and hex prefix</a>:</p>
<blockquote>
<p dir="auto">$a<br />
$A<br />
$4b, $48, $46, $43, $40, $3d, $3b</p>
</blockquote>
<p dir="auto">If I understand your question correctly, add it to <code>Extras 1</code> like<br />
described <a href="https://ivan-radic.github.io/udl-documentation/numbers/" rel="nofollow ugc">here</a></p>
<p dir="auto"><img src="/assets/uploads/files/1662975742479-6741417c-9359-4530-a393-8ce94d7db961-image.png" alt="6741417c-9359-4530-a393-8ce94d7db961-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/79703</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79703</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 12 Sep 2022 09:42:44 GMT</pubDate></item></channel></rss>