<?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[RegEx for functionlist/php.xml => Detection of a function for Showing in Functionlist]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">I have been using version 7.8.4 so far.</p>
<p dir="auto">For better clarity in long procedural PHP source code, I have made a small additionn. All lines of code that begin with “###mainblock:” are displayed like a function in the function list on a right area.</p>
<p dir="auto">I have extended the functionList.xml under functionList &gt; parser &gt; function as follows:</p>
<pre><code>&lt;function mainExpr=“^\s*(function|###mainblock:)\s+[\.\w]+\s*\(”&gt;
</code></pre>
<p dir="auto">Unfortunately, this no longer works in version 8.7.4. The RegEx for source code parsing has been greatly expanded there. There I have the file functionlist/php.xml.</p>
<p dir="auto">If I extend the MainExpression there under functionList &gt; parser &gt; function accordingly:</p>
<pre><code>(?-i:function|###mainblock:)\s+
</code></pre>
<p dir="auto">But it does not work. It is not displayed as an entry in the function list. I suspect it is because of the # , which is why the whole line is treated as a comment. But this is necessary, because it is only comment. After 4 hours of trial and error, I have to give up and hope for a little help from you. <em>please</em></p>
<p dir="auto">What I have to do so that in version 8.7.4 a line like ###mainblock(‘my_title’) {} is displayed in the function list?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26496/regex-for-functionlist-php-xml-detection-of-a-function-for-showing-in-functionlist</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 02:11:44 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26496.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Dec 2024 12:15:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RegEx for functionlist/php.xml => Detection of a function for Showing in Functionlist on Tue, 24 Dec 2024 15:17:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a></p>
<p dir="auto">Sorry, I didn’t see it was a second copy when I approved the second.</p>
<p dir="auto">Conversation will continue in the <a href="https://community.notepad-plus-plus.org/topic/26497/regex-in-functionlist-php-xml-to-display-a-specific-comment-in-functionlist">other</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/98742</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98742</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 24 Dec 2024 15:17:47 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx for functionlist/php.xml => Detection of a function for Showing in Functionlist on Tue, 24 Dec 2024 15:00:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tom_1978" aria-label="Profile: Tom_1978">@<bdi>Tom_1978</bdi></a></p>
<p dir="auto">I released only 1 of your posts, as the 2nd was a repeat of this post. The forum has had to implement the post queue due to spammers.  So if posting again, just wait for it to be released.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98740</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98740</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Tue, 24 Dec 2024 15:00:25 GMT</pubDate></item></channel></rss>