<?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 trigger modifiers]]></title><description><![CDATA[<p dir="auto">I defined my own UserDefLang a long time ago (improving on the WinBatch UDL) and am coming back to it after a couple of years, trying to identify some problems with code folding.</p>
<p dir="auto">I notice that some of the trigger words have a ^ (caret) after them. For example, subroutines in WinBatch begin with a [ :label ] and end with the word [ Return ]. In fact, the thing that indicates a subroutine is that the first word on that line starts with a [ : ] (colon).  So, all WinBatch subroutines look like this -</p>
<pre><code>:Subname
	some code
	lotsa code
	goes here
Return
</code></pre>
<p dir="auto">In the UDL editor, I noticed that these triggers look like this:</p>
<pre><code>Open:
[:^                ]
Middle:
[                  ]
Close:
[Return^           ]
</code></pre>
<p dir="auto">I believe the caret indicates that the trigger word must be the first word on the line. Am I correct? Can there be white space before the trigger keyword?</p>
<p dir="auto">Where can I find documentation about this? (And I wonder if there are other modifiers that can be used in defining trigger words?)</p>
<p dir="auto">Notepad++ v8.4.2   (32-bit)<br />
Build time : May 29 2022 - 16:45:17<br />
Path : C:\Program Files (x86)\Notepad++\notepad++.exe<br />
Command Line : $COMMAND_LINE_PLACEHOLDER$<br />
Admin mode : ON<br />
Local Conf mode : OFF<br />
Cloud Config : OFF<br />
OS Name : Windows 10 Enterprise (64-bit)<br />
OS Version : 1903<br />
OS Build : 18362.239<br />
Current ANSI codepage : 1252<br />
Plugins :<br />
ComparePlugin (2.0.1)<br />
EmmetNPP (1.0.2)<br />
mimeTools (2.8)<br />
NppConverter (4.4)<br />
NppExport (0.4)<br />
NppFTP (0.29.7)<br />
NppQCP (2)<br />
PythonScript (2)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23191/udl-trigger-modifiers</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 23:08:54 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23191.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 Jul 2022 23:56:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UDL trigger modifiers on Mon, 04 Jul 2022 09:50:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gibberishbc" aria-label="Profile: gibberishbc">@<bdi>gibberishbc</bdi></a></p>
<p dir="auto">the official documentation is <a href="https://ivan-radic.github.io/udl-documentation/folding-in-code/" rel="nofollow ugc">here</a> and no, a ^ does not mean it has to be the beginning of a line. If you think this has to do with regex, then no, UDL doesn’t support regex yet.</p>
<p dir="auto">The ultimate truth is in the <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/lexilla/lexers/LexUser.cxx" rel="nofollow ugc">source</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78100</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78100</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 04 Jul 2022 09:50:56 GMT</pubDate></item></channel></rss>