<?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[Submenu Item on Edit Context Menu]]></title><description><![CDATA[<p dir="auto">I’m trying to edit contextmenu.xml to modify the Edit Popup ContextMenu. I want to add the “Sort Lines Lexicographically Ascending” item from the “Line Operations” submenu of the “Edit” menu. Can this be done? I cannot find any instructions that say how to navigate submenus in contextmenu.xml.<br />
I was able to successfully add an item in a first level menu (Edit | Character Panel).</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20981/submenu-item-on-edit-context-menu</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 18:10:49 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20981.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Apr 2021 21:48:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Submenu Item on Edit Context Menu on Sat, 03 Apr 2021 00:00:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/64600">Submenu Item on Edit Context Menu</a>:</p>
<blockquote>
<p dir="auto">in the next release</p>
</blockquote>
<p dir="auto">Which <a class="plugin-mentions-user plugin-mentions-a" href="/user/donho" aria-label="Profile: donho">@<bdi>donho</bdi></a> just released a few mintues ago (thanks!).  So now my <a href="https://npp-user-manual.org/docs/config-files/#the-context-menu-contextmenu-xml" rel="nofollow ugc">official docs</a> link points to the explanation with more detail.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64601</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64601</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 03 Apr 2021 00:00:55 GMT</pubDate></item><item><title><![CDATA[Reply to Submenu Item on Edit Context Menu on Fri, 02 Apr 2021 22:30:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/daniel-jameson" aria-label="Profile: Daniel-Jameson">@<bdi>Daniel-Jameson</bdi></a> said in <a href="/post/64597">Submenu Item on Edit Context Menu</a>:</p>
<blockquote>
<p dir="auto">I cannot find any instructions that say how to navigate submenus</p>
</blockquote>
<p dir="auto">The <a href="https://npp-user-manual.org/docs/config-files/#the-context-menu-contextmenu-xml" rel="nofollow ugc">official docs</a> say,</p>
<blockquote>
<p dir="auto">To add a built-in command, you need to provide the main menu name (as it appears in the main menu bar) as the value of the MenuEntryName attribute and the command’s item name (as it appears in the menu) as the value of the MenuItemName attribute. The MenuEntryName attribute must reference an entry on the main menu bar and must be an ancestor of the MenuItemName attribute, regardless of its depth.</p>
</blockquote>
<p dir="auto">Thus, MenuEntryName must always be a top-level (“from the main menu”), and MenyItemName is the name of the action <em>any number of levels deep</em> (“regardless of its depth”).under that top-level menu name.</p>
<p dir="auto">Further, as will be explained better in the <a href="https://github.com/notepad-plus-plus/npp-usermanual/blob/f0694070a0c2d722a7843edccbfdf7d531e22f9d/content/docs/config-files.md#the-context-menu-contextmenuxml" rel="nofollow ugc">next release of the usermanual</a>, you can also refer to <em>any</em> builtin menu entry through its command ID rather than the menu name</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64600</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64600</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 02 Apr 2021 22:30:20 GMT</pubDate></item><item><title><![CDATA[Reply to Submenu Item on Edit Context Menu on Fri, 02 Apr 2021 22:10:51 GMT]]></title><description><![CDATA[<p dir="auto">And I got this working too…</p>
<pre><code>&lt;Item FolderName="Sort Lines" MenuEntryName="Edit" SubMenuEntryName="Line Operations" MenuItemName="Sort Lines Lexicographically Ascending" /&gt;
&lt;Item FolderName="Sort Lines" MenuEntryName="Edit" SubMenuEntryName="Line Operations" MenuItemName="Sort Lines Lex. Ascending Ignoring Case" /&gt;
&lt;Item FolderName="Sort Lines" MenuEntryName="Edit" SubMenuEntryName="Line Operations" MenuItemName="Sort Lines Lexicographically Descending" /&gt;
&lt;Item FolderName="Sort Lines" MenuEntryName="Edit" SubMenuEntryName="Line Operations" MenuItemName="Sort Lines Lex. Descending Ignoring Case" /&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/64599</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64599</guid><dc:creator><![CDATA[Daniel Jameson]]></dc:creator><pubDate>Fri, 02 Apr 2021 22:10:51 GMT</pubDate></item><item><title><![CDATA[Reply to Submenu Item on Edit Context Menu on Fri, 02 Apr 2021 22:05:39 GMT]]></title><description><![CDATA[<p dir="auto">Through guessing and trial &amp; error I got it to work:</p>
<pre><code>&lt;Item MenuEntryName="Edit" SubMenuEntryName="Line Operations" MenuItemName="Sort Lines Lexicographically Ascending" /&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/64598</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64598</guid><dc:creator><![CDATA[Daniel Jameson]]></dc:creator><pubDate>Fri, 02 Apr 2021 22:05:39 GMT</pubDate></item></channel></rss>