<?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[Question: What code to use TextFX tools in pop-up context menu?]]></title><description><![CDATA[<p dir="auto">I have customized the pop-up context menu to help me use certain text-wrangling tools. I would like to include some of the TextFX tools, but I can’t make them appear on the list. The instructions are “To add plugin commands, you have to use PluginEntryName and PluginCommandItemName to localize the plugin commands.” I can see that it works for the Base64 Encode, as that’s a default option on the context menu.</p>
<p dir="auto">I can’t make the Spell Checker plugin show up on the list, nor any of the TextFX tools either.</p>
<p dir="auto">What am I doing wrong? These are the entries I’ve inserted into contextMenu.xml that fail to appear:</p>
<p dir="auto">&lt;Item FolderName=“Plugin commands” PluginEntryName=“Spell-Checker” PluginCommandItemName=“Spell-Checker”/&gt;	<br />
&lt;Item FolderName=“TextFX” PluginEntryName=“TextFX Edit” PluginCommandItemName=“Kill unquoted (VB) whitespace” ItemNameAs=“Remove spaces”/&gt;</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14376/question-what-code-to-use-textfx-tools-in-pop-up-context-menu</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 23:00:22 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14376.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Aug 2017 01:23:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Question: What code to use TextFX tools in pop-up context menu? on Tue, 29 Aug 2017 04:56:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dinkumoil" aria-label="Profile: dinkumoil">@<bdi>dinkumoil</bdi></a> All I can say is, thank you. I am very happy. I didn’t know to keep the the value of the attribute “PluginEntryName” as “TextFX Characters”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26496</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26496</guid><dc:creator><![CDATA[Amanda Graham]]></dc:creator><pubDate>Tue, 29 Aug 2017 04:56:15 GMT</pubDate></item><item><title><![CDATA[Reply to Question: What code to use TextFX tools in pop-up context menu? on Mon, 28 Aug 2017 10:32:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/amanda-graham" aria-label="Profile: Amanda-Graham">@<bdi>Amanda-Graham</bdi></a></p>
<p dir="auto">As <a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a>  already stated: TextFX is different. Therefor it behaves different when it comes to including its tools into the context popup menu. There are two methods to find out the codes you have to write to the file “contextMenu.xml”.</p>
<ol>
<li>
<p dir="auto">If you open the shortcut mapper dialog and switch to the “Plugin commands” tab you will find some entries that start with an uppercase letter followed by a colon.</p>
</li>
<li>
<p dir="auto">When you click on menu “Settings” -&gt; “Edit Popup ContextMenu” Notepad++ loads the file  “%UserProfile%\AppData\Roaming\Notepad++\contextMenu.xml”. If you look into the TextFX menu now, you will notice that all menu entries (except the ones in the “TextFX Characters” submenu) are preceded by uppercase letters followed by a colon.</p>
</li>
</ol>
<p dir="auto">To put entries in the popup context menu you have to create XML nodes in “contextMenu.xml” which contain <strong>exactly the same text as the shortcut mapper/menu entries including the preceding uppercase letter and the colon</strong>.</p>
<ol>
<li>
<p dir="auto">If you want to add a TextFX tool from the “TextFX Characters” submenu to the main level of the context popup menu you have to add a child node like the following to the “ScintillaContextMenu” XML node:</p>
<pre><code> &lt;Item PluginEntryName="TextFX Characters" PluginCommandItemName="Sentence case." /&gt;
</code></pre>
</li>
<li>
<p dir="auto">If you want to add a TextFX tool to the main level of the context popup menu whose shortcut mapper/menu entry is preceded by an uppercase letter and a colon you have to add a child node like the following to the “ScintillaContextMenu” XML node:</p>
<pre><code> &lt;Item PluginEntryName="TextFX Characters" PluginCommandItemName="Q:Duplicate Line or Block" ItemNameAs="Zeile/Markierung duplizieren" /&gt;
</code></pre>
<p dir="auto">The “ItemNameAs” attribute can be used to localize an entry.</p>
</li>
<li>
<p dir="auto">If you want to add a TextFX tool to a <strong>submenu</strong> of the context popup menu called “Plugin Befehle” you have to add a child node like the following to the “ScintillaContextMenu” XML node:</p>
<pre><code> &lt;Item FolderName="Plugin Befehle" PluginEntryName="TextFX Characters" PluginCommandItemName="Q:Duplicate Line or Block" ItemNameAs="Zeile/Markierung duplizieren" /&gt;
</code></pre>
</li>
</ol>
<p dir="auto">Please note that the value of the attribute “PluginEntryName” <strong>always has to be “TextFX Characters”</strong> regardless of the title of the originating submenu.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26487</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26487</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Mon, 28 Aug 2017 10:32:07 GMT</pubDate></item><item><title><![CDATA[Reply to Question: What code to use TextFX tools in pop-up context menu? on Mon, 28 Aug 2017 02:43:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a> Thanks for the reply.</p>
<p dir="auto">I thought maybe I needed to specify MenuEntryName=“TextFX”, but that doesn’t make it work either.</p>
<p dir="auto">Sigh.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26483</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26483</guid><dc:creator><![CDATA[Amanda Graham]]></dc:creator><pubDate>Mon, 28 Aug 2017 02:43:53 GMT</pubDate></item><item><title><![CDATA[Reply to Question: What code to use TextFX tools in pop-up context menu? on Mon, 28 Aug 2017 01:55:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/amanda-graham" aria-label="Profile: Amanda-Graham">@<bdi>Amanda-Graham</bdi></a></p>
<p dir="auto">TextFX is not a “typical” plugin.  For some reason, it thinks it is different enough NOT to be installed under the Plugins menu, and creates a top-level “TextFX” menu for itself (not sure where this narcissistic attitude came from).  This might be the root of the trouble you are having.  I believe the “plugin” command structure for the context menu is definitely looking in the Plugins menu tree to find what it is looking for, and since TextFX isn’t there…</p>
<p dir="auto">When I tried configuring it for the context-menu like a normal Notepad++ menu item (e.g. modeling it after the “Block comment” context menu item–because that is nested in a submenu–like the TextFX items), I didn’t have any luck getting it running that way.  Not sure why, it <em>seems</em> like that should have worked…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/26482</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/26482</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Mon, 28 Aug 2017 01:55:21 GMT</pubDate></item></channel></rss>