<?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[Function list]]></title><description><![CDATA[<p dir="auto">Dear all,</p>
<p dir="auto">I’m struggling a bit with the syntax in the function list. Here you can see an example - I would like to see also the text behind the “Group” in the function list.<br />
Does anyone has an idea how I can do that?<br />
I find the explanation regarding the syntax in the function not so well understandable - is there a good one?</p>
<p dir="auto">BR,<br />
Ninon</p>
<p dir="auto"><img src="/assets/uploads/files/1658992288211-example-notepad.png" alt="example - Notepad++.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">&lt;NotepadPlus&gt;<br />
&lt;functionList&gt;<br />
&lt;!-- ================================ [ Batch / Command Shell Script ] --&gt;</p>
<pre><code>	&lt;parser
		displayName="Example_sensors"
		id         ="example_sensors"
		commentExpr="(?x)                                               # Utilize inline comments (see `RegEx - Pattern Modifiers`)
						(?m-s:(?i:REM)(?:\h.+)?$)                       # Single Line Comment 1
					|	(?m-s::{2}.*$)                                  # Single Line Comment 2
					"
	&gt;
		&lt;function
			mainExpr="Group\s+\w*[0-9]\t*[A-Za-z_\x7F-\xFF][\w\x7F-\xFF]*"
		/&gt;
	&lt;/parser&gt;
&lt;/functionList&gt;
</code></pre>
<p dir="auto">&lt;/NotepadPlus&gt;</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23310/function-list</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 13:41:57 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23310.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Jul 2022 07:16:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Function list on Fri, 29 Jul 2022 19:40:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/17790">@Ninon_1977</a> said in <a href="/post/78819">Function list</a>:</p>
<blockquote>
<p dir="auto">I changed the input file now - I added whitespaces after the Group number - now the function list looks perfect</p>
</blockquote>
<p dir="auto">Well, that’s the ultimate situation, when you have control over the data.  Much more often, the format is dictated to you.</p>
<p dir="auto">Had we known that, we’d have advised you to just change your format before even discussing how the tab might be playing in the function list.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78820</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78820</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 29 Jul 2022 19:40:14 GMT</pubDate></item><item><title><![CDATA[Reply to Function list on Fri, 29 Jul 2022 16:55:14 GMT]]></title><description><![CDATA[<p dir="auto">Dear Alen and Peter,<br />
thank you for your thoughts!<br />
I changed the input file now - I added whitespaces after the Group number - now the function list looks perfect ;-)</p>
<p dir="auto">Group 04   Some Text</p>
<p dir="auto">BR,<br />
Ninon</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78819</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78819</guid><dc:creator><![CDATA[Ninon_1977]]></dc:creator><pubDate>Fri, 29 Jul 2022 16:55:14 GMT</pubDate></item><item><title><![CDATA[Reply to Function list on Fri, 29 Jul 2022 14:12:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> said in <a href="/post/78816">Function list</a>:</p>
<blockquote>
<p dir="auto">If the application is just sending the raw text to the treeview widget (or whatever widget is being used in that panel), and the widget itself is just choosing not to display the tab…</p>
</blockquote>
<p dir="auto">A quick look at the source code seems to indicate that is the case.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78817</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78817</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 29 Jul 2022 14:12:06 GMT</pubDate></item><item><title><![CDATA[Reply to Function list on Fri, 29 Jul 2022 13:32:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> said in <a href="/post/78814">Function list</a>:</p>
<blockquote>
<p dir="auto">It seems a bit ambitious; if it were me, I’d probably accept how it shows currently.</p>
</blockquote>
<p dir="auto">Whether or not it’s ambitious probably depends on the current implementation.  If the application is just sending the raw text to the treeview widget (or whatever widget is being used in that panel), and the widget itself is just choosing not to display the tab, then there might not be much that the developer can do about it.  But if the application is removing tabs before sending the function names to the widget, then instead of removing them, I would suggest just replacing with a single space (which I would think would be just as easy as removing them).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78816</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78816</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 29 Jul 2022 13:32:27 GMT</pubDate></item><item><title><![CDATA[Reply to Function list on Fri, 29 Jul 2022 13:11:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> said in <a href="/post/78811">Function list</a>:</p>
<blockquote>
<p dir="auto">As the documentation says, you cannot change/replace characters</p>
</blockquote>
<p dir="auto">Specifically, it says so <a href="https://npp-user-manual.org/docs/function-list/#:~:text=The%20parser%20can%20only%20search%20for%20function%20names%2C%20it%20will%20not%20do%20regular%20expression%20replacement%20or%20modification%20(so%20you%20cannot%20add%20text%20to%20the%20matching%20names)" rel="nofollow ugc">HERE</a>.</p>
<blockquote>
<p dir="auto">the Function List doesn’t display a tab as you might expect</p>
</blockquote>
<p dir="auto">It appears to display nothing for the tab position.  Not sure what it should display; probably it should look up the number of spaces for the current “language” of the source file, and insert multiple spaces?  It seems a bit ambitious; if it were me, I’d probably accept how it shows currently.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78814</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78814</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 29 Jul 2022 13:11:43 GMT</pubDate></item><item><title><![CDATA[Reply to Function list on Fri, 29 Jul 2022 12:59:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/17790">@Ninon_1977</a> ,</p>
<blockquote>
<p dir="auto">Is there a way to include a space after the number</p>
</blockquote>
<p dir="auto">As the documentation says, you cannot change/replace characters in the Function List panel; you can just choose which characters from the file match and get displayed.</p>
<p dir="auto">There is a tab character in your file … and unfortunately, the Function List doesn’t display a tab as you might expect.  For that, you might want to file a bug report following the <a href="https://community.notepad-plus-plus.org/topic/15741/faq-desk-feature-request-or-bug-report">instructions in the FAQ</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/78811</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78811</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 29 Jul 2022 12:59:13 GMT</pubDate></item><item><title><![CDATA[Reply to Function list on Fri, 29 Jul 2022 06:12:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a><br />
Hi Peter,<br />
your answer was very helpful - thank you for that!<br />
Just one last question regarding this issue - now I can see this in the function list:<br />
Group 04Some Text<br />
Is there a way to include a space after the number - like this?<br />
Group 04 Some Text<br />
BR,<br />
Ninon</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78804</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78804</guid><dc:creator><![CDATA[Ninon_1977]]></dc:creator><pubDate>Fri, 29 Jul 2022 06:12:56 GMT</pubDate></item><item><title><![CDATA[Reply to Function list on Thu, 28 Jul 2022 14:30:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/17790">@Ninon_1977</a> ,</p>
<p dir="auto">It’s <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" title="links to Notepad++ regex docs" rel="nofollow ugc">regular expression “regex” syntax</a>, and the <a href="https://npp-user-manual.org/docs/function-list/" rel="nofollow ugc">function list docs</a> aren’t going to repeat what’s already elsewhere in the manual.</p>
<p dir="auto">Looking at your main expression:</p>
<pre><code class="language-txt">Group\s+\w*[0-9]\t*[A-Za-z_\x7F-\xFF][\w\x7F-\xFF]*
^^^^^^^^~~~~~~~~^^^~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
(1)     (2)     (3)(4)               (5) 
</code></pre>
<ol>
<li>literal “Group” followed by one or more space characters</li>
<li>zero or more alphanumeric+underscore, followed by exactly one digit from 0-9</li>
<li>zero or more tabs</li>
<li>one character that is uppercase, lowercase, underscore, or extended-ASCII range</li>
<li>zero or more characters that are alphanumeric+underscore or extended-ASCII</li>
</ol>
<p dir="auto">With the expression you supplied, I would expect it to work.</p>
<p dir="auto">And, in fact, when I tried it, it did work (or, at least, mostly):</p>
<p dir="auto"><img src="/assets/uploads/files/1659015716760-182c5fbe-40e7-45ae-b827-f5d4d35ea15f-image.png" alt="182c5fbe-40e7-45ae-b827-f5d4d35ea15f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>FILE</strong> (with UDL=“Example_sensors” selected)</p>
<pre><code class="language-txt">Group 04	Some Text
	text 1
	text 2
	text 3
	text 4
	text 5
</code></pre>
<p dir="auto"><strong>example_sensors.xml</strong>:</p>
<pre><code class="language-xml">&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;!-- ==========================================================================\
|
|   To learn how to make your own language parser, please check the following
|   link:
|       https://npp-user-manual.org/docs/function-list/
|
\=========================================================================== --&gt;
&lt;NotepadPlus&gt;
	&lt;functionList&gt;
		&lt;!-- ================================ [ Batch / Command Shell Script ] --&gt;

		&lt;parser
			displayName="Batch / Command Shell Script"
			id         ="batch_label"
			commentExpr="(?x)                                               # Utilize inline comments (see `RegEx - Pattern Modifiers`)
							(?m-s:(?i:REM)(?:\h.+)?$)                       # Single Line Comment 1
						|	(?m-s::{2}.*$)                                  # Single Line Comment 2
						"
		&gt;
			&lt;function
				mainExpr="Group\s+\w*[0-9]\t*[A-Za-z_\x7F-\xFF][\w\x7F-\xFF]*"
			/&gt;
		&lt;/parser&gt;
	&lt;/functionList&gt;
&lt;/NotepadPlus&gt;
</code></pre>
<p dir="auto"><strong>overrideMap.xml</strong> (snippet):</p>
<pre><code class="language-xml">			&lt;!-- ==================== User Defined Languages ============================ --&gt;
			&lt;association id= "example_sensors.xml"				userDefinedLangName="Example_sensors"/&gt;

</code></pre>
<p dir="auto">I said “mostly”, because it only grabbed “Some”, not “Some Text”, because “Some Text” has a space in it, and your regex never allowed spaces, so it obviously couldn’t go any farther.  If I were doing it, I would simplify it down to <code>(?-s)Group\h+\w*[0-9]\t*.*</code>, which will grab everything on that line after the optional tab</p>
<p dir="auto"><img src="/assets/uploads/files/1659015953364-43645be1-5a75-4f6d-b6e4-6404a2b2d6fe-image.png" alt="43645be1-5a75-4f6d-b6e4-6404a2b2d6fe-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/78768</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78768</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 28 Jul 2022 14:30:48 GMT</pubDate></item></channel></rss>