<?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[Help with UDL config]]></title><description><![CDATA[<p dir="auto">i basically want to style each operator differently and leave the text the default. i cant seem to figure it out</p>
<p dir="auto">i think the fix would be to add an option of the user checking forward or backward to the keywords. Or just add more separate Operators boxes or add the option to nest ‘default text font’</p>
<p dir="auto">or maybe i just cant figure it out… if someone could do it I would appreciate it. here is a screenshot</p>
<p dir="auto">•	Open and closing ( ) light grey<br />
•	Commas red<br />
•	Numbers red<br />
•	Open closing braces blue<br />
•	Ending semi colon reduced size</p>
<p dir="auto">sc.LinearRegression(diff,sc.Subgraph[4].Arrays[2],30);</p>
<p dir="auto">[img]<a href="https://i.imgur.com/dJWBWi4.png%5B/img%5D" rel="nofollow ugc">https://i.imgur.com/dJWBWi4.png[/img]</a></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19869/help-with-udl-config</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 16:29:46 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19869.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Aug 2020 16:38:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help with UDL config on Mon, 17 Aug 2020 12:23:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jr" aria-label="Profile: JR">@<bdi>JR</bdi></a></p>
<p dir="auto">feel free to open an issue if something is unclear from the usage description in the script.<br />
As for the <a href="http://startup.py" rel="nofollow ugc">startup.py</a>, if you use the one under machine then there is<br />
a chance that it gets overwritten once an PythonScript plugin update happens. Like <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said, I would create a custom script with “New Script” and name it <a href="http://startup.py" rel="nofollow ugc">startup.py</a>.<br />
It is automatically created in the correct path.<br />
By the way, the PythonScript configuration has to be changed from LAZY to ATSTARTUP so that it is executed at every npp startup.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56882</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56882</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 17 Aug 2020 12:23:06 GMT</pubDate></item><item><title><![CDATA[Reply to Help with UDL config on Mon, 17 Aug 2020 12:09:49 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/56878">Help with UDL config</a>:</p>
<blockquote>
<p dir="auto">It can go in either Machine or User scripts.</p>
</blockquote>
<p dir="auto">Why is this even a factor.<br />
You should create a new script with <em>Python Script</em> -&gt; <em>New Script</em> and then name it and then paste the code into it.<br />
The plugin will put the code file where it “belongs”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56881</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56881</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 17 Aug 2020 12:09:49 GMT</pubDate></item><item><title><![CDATA[Reply to Help with UDL config on Mon, 17 Aug 2020 01:21:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jr" aria-label="Profile: JR">@<bdi>JR</bdi></a> ,</p>
<p dir="auto">Yes, it uses PythonScript plugin.  It can go in either Machine or User scripts.  You have to configure it in the code, then run it.  It can be run from <a href="http://startup.py" rel="nofollow ugc">startup.py</a> to run every time you load NPP.  I believe that the thread I linked earlier probably explains how to do that</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56878</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56878</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 17 Aug 2020 01:21:32 GMT</pubDate></item><item><title><![CDATA[Reply to Help with UDL config on Mon, 17 Aug 2020 00:44:14 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> thanks for the reply.</p>
<p dir="auto">now how do i implement this <a href="http://EnhanceAnyLexer.py" rel="nofollow ugc">EnhanceAnyLexer.py</a> script?  use PythonScripts plugin? list in under ‘Machine Scripts’?  is there a gui or how are the rules implemented?</p>
<p dir="auto">if you can just point me in the general direction i can figure it out (just new to np)  thanks again</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56877</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56877</guid><dc:creator><![CDATA[JR]]></dc:creator><pubDate>Mon, 17 Aug 2020 00:44:14 GMT</pubDate></item><item><title><![CDATA[Reply to Help with UDL config on Sun, 16 Aug 2020 18:49:51 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/56873">Help with UDL config</a>:</p>
<blockquote>
<p dir="auto"><a href="http://EnhanceAnyLexer.py" rel="nofollow ugc">EnhanceAnyLexer.py</a> code, and its comments claim to handle both builtin and UDL lexers now.</p>
</blockquote>
<p dir="auto">I guess that is the reason for the renaming so that <code>Any</code> is in the name now.  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56874</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56874</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 16 Aug 2020 18:49:51 GMT</pubDate></item><item><title><![CDATA[Reply to Help with UDL config on Sun, 16 Aug 2020 17:41:27 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/56871">Help with UDL config</a>:</p>
<blockquote>
<p dir="auto">like you did for EnhanceAnyLexer</p>
</blockquote>
<p dir="auto">I stand corrected: I looked at the updated <code>EnhanceAnyLexer.py</code> code, and its comments claim to handle both builtin and UDL lexers now.  Cool.</p>
<p dir="auto">So, <a class="plugin-mentions-user plugin-mentions-a" href="/user/jr" aria-label="Profile: JR">@<bdi>JR</bdi></a>, you can use the updated script from <a href="https://github.com/Ekopalypse/NppPythonScripts/tree/master/npp/EnhanceAnyLexer.py" rel="nofollow ugc">his github</a>, rather than the one in the post I previously linked</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56873</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56873</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 16 Aug 2020 17:41:27 GMT</pubDate></item><item><title><![CDATA[Reply to Help with UDL config on Sun, 16 Aug 2020 17:31:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jr" aria-label="Profile: JR">@<bdi>JR</bdi></a> said in <a href="/post/56870">Help with UDL config</a>:</p>
<blockquote>
<p dir="auto">sc.LinearRegression(diff,sc.Subgraph[4].Arrays[2],30);<br />
[img]<a href="https://i.imgur.com/dJWBWi4.png%5B/img%5D" rel="nofollow ugc">https://i.imgur.com/dJWBWi4.png[/img]</a></p>
</blockquote>
<p dir="auto">This forum uses markdown, not bbcode.  <code>![](https://i.imgur.com/dJWBWi4.png)</code> =&gt;<br />
<img src="https://i.imgur.com/dJWBWi4.png" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto">By using delimiters, you can come close, but not exactly what you want:<br />
<img src="/assets/uploads/files/1597598443810-334e3215-05fb-47a0-b470-039ffa08257d-image.png" alt="334e3215-05fb-47a0-b470-039ffa08257d-image.png" class=" img-fluid img-markdown" /></p>
<ul>
<li>operator1 = <code>,</code></li>
<li>delimiter1 = <code>(</code> … <code>)</code></li>
<li>delimiter2 = <code>[</code> … <code>]</code></li>
<li>keyword1 = <code>;</code></li>
</ul>
<p dir="auto">On the delimiters, I allowed nesting of just about everything, so other colors would come through.</p>
<p dir="auto">It’s close, but the parentheses as delimiters means that things <em>inside</em> the parens also get light grey.  And getting only semicolons at the end of a line cannot be done in UDL – by making it a keyword, if it comes after non-word character (like after close paren or after whitespace) it will be highlighted as a keyword; however, after text (as shown in <code>Semicolon;</code> in my pic), it won’t highlight.</p>
<p dir="auto">If that’s not sufficient, you can add extra highlighting to a UDL language using regexes via the script <code>EnhanceUDLLexer.py</code> that <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> shares <a href="https://notepad-plus-plus.org/community/topic/17134/enhance-udl-lexer/31" rel="nofollow ugc">in this linked post</a></p>
<p dir="auto">( <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> : are you planning on making similar updates to EnhanceUDLLexer and put it on your <a href="https://github.com/Ekopalypse/NppPythonScripts/tree/master/npp" rel="nofollow ugc">github</a>, like you did for EnhanceAnyLexer?  Or even just put a copy there?  If you do, I’ll update my boilerplate)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56871</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56871</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 16 Aug 2020 17:31:18 GMT</pubDate></item></channel></rss>