<?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 suggestion - switch to general regular expressions]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have recently experienced a sizable dose of frustration when I tried to implement a few very simple UDL rules for Forth (see here: <a href="https://notepad-plus-plus.org/community/topic/12820/how-to-fix-bugs-in-custom-language-highlighting" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/12820/how-to-fix-bugs-in-custom-language-highlighting</a> )</p>
<p dir="auto">Why don’t we just dump the whole UDL setup, which is quite complicated and yet very inefficient, as it appears, and why don’t we just replace it by a collection of regular expressions  linked to the respective styling?  There could still be some simple tool to generate rules from lists of keywords or operators (building RE from a list is quite trivial), but for any other elements there would be much more flexibility.</p>
<p dir="auto">I think maintaining the complex set of forms for UDL is not very useful if it cannot highlight even common situations in many common languages.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/12823/udl-suggestion-switch-to-general-regular-expressions</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 20:37:01 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/12823.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Nov 2016 12:30:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UDL suggestion - switch to general regular expressions on Wed, 30 Nov 2016 13:02:46 GMT]]></title><description><![CDATA[<p dir="auto">I’m guessing the UDL was developed by someone who wanted something to highlight unsupported file types in a manner that the average person can make use of. Without it, you would have to write a lexer for Scintilla, and not many NPP users are going to do that.</p>
<p dir="auto">I wish the UDL was more powerful (supporting regex in some ways, for example), but it offers a decent set of options for highlighting many types of “non-standard” files. I have certainly put it to good use–I have 13 UDL file types. :-)</p>
<p dir="auto">I’m afraid that your desire can only be met by someone who shares that desire to a great degree and who has the ability to write an NPP plugin that will fulfill that desire.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19572</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19572</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Wed, 30 Nov 2016 13:02:46 GMT</pubDate></item></channel></rss>