<?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[macro question re:]]></title><description><![CDATA[<p dir="auto">I am running Notepad++ V8.9.7, 64-bit version on Windows 11 Pro.<br />
I install/update Notepad++ using an installer package.<br />
I was trying to add the Global Search stuff and was following these instructions</p>
<blockquote>
<ul>
<li>First, we are going to add the <strong>macro</strong>, described below, within your active <strong><code>shortcut.xml</code></strong> file, right <strong>before</strong> the line containing <strong><code>&lt;/Macros&gt;</code></strong></li>
</ul>
<pre><code class="language-xml">        &lt;Macro name="Global Search" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="(\w)" /&gt;
            &lt;Action type="3" message="1625" wParam="0" lParam="2" sParam="" /&gt;
            &lt;Action type="3" message="1602" wParam="0" lParam="0" sParam="(?1&lsqb;&lsqb;=$0=&rsqb;&rsqb;:$0)" /&gt;
            &lt;Action type="3" message="1702" wParam="0" lParam="640" sParam="" /&gt;
            &lt;Action type="3" message="1701" wParam="0" lParam="1609" sParam="" /&gt;
        &lt;/Macro&gt;
</code></pre>
<p dir="auto"><strong>Reminder</strong> :</p>
<ul>
<li>
<p dir="auto">If you installed <strong>N++</strong> with an <strong>installer</strong> package, your <strong>active</strong> <strong><code>shortcuts.xml</code></strong> file should be within the folder <strong><code>%AppData%\Notepad++</code></strong></p>
</li>
<li>
<p dir="auto">If you installed <strong>N++</strong> with a <strong>portable</strong> package, your <strong>active</strong> <strong><code>shortcuts.xml</code></strong> file should be along with the <strong><code>Notepad++.exe</code></strong> file, in your <strong>install</strong> folder</p>
</li>
<li>
<p dir="auto">You may also define a <strong>shortcut</strong> for this <strong><code>Global Search</code></strong> macro, by opening the <strong><code>Settings &gt; Shortcut Mapper... &gt; Macros</code></strong> tab and double-clicking on the <strong><code>Global Search</code></strong> line !</p>
</li>
</ul>
</blockquote>
<p dir="auto">When I tried the above I has 2 issues:</p>
<ol>
<li>I have a “shortcut"s”.xml, not a shortcut.xml file. I assume this was a typo??</li>
<li>I was unable to create a shortcut for this Global Search, When I open the Settings &gt; Shortcut Mapper… &gt; Macros tab I get this result:<br />
<img src="/assets/uploads/files/1784825170816-72789460-c4f0-48bd-964b-d8de8f75c99a-image.jpeg" alt="72789460-c4f0-48bd-964b-d8de8f75c99a-image.jpeg" class=" img-fluid img-markdown" /><br />
I don’t see a Global Search line to double-click on.</li>
</ol>
<p dir="auto">Please advise.</p>
<hr />
<p dir="auto"><em>moderator edit: added <code>&gt;</code> for quoting, fixed underlying markdown to match the original post, so that it’s an accurate representation of what <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> wrote in the original post).</em></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27614/macro-question-re</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 21:24:56 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27614.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Jul 2026 16:51:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to macro question re: on Thu, 23 Jul 2026 20:27:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/murraysobol" aria-label="Profile: MurraySobol">@<bdi>MurraySobol</bdi></a> ,</p>
<p dir="auto">Please use the <code>&lt;/&gt;</code> button on the forum toolbar when you want to paste example text, and put the text where it says <code>code_text</code> when you do that.  That way, your example text won’t be interpreted as “markdown”, so that we know that your example text is coming through the way you pasted it.</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/murraysobol" aria-label="Profile: MurraySobol">@<bdi>MurraySobol</bdi></a> <a href="/post/105969">said</a>:<br />
This question is for <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>.</p>
</blockquote>
<p dir="auto">Why limit it, when anyone else with the knowledge can answer as well?</p>
<blockquote>
<p dir="auto">I don’t know if I have modified the shortcuts.xml file correctly,</p>
</blockquote>
<p dir="auto">You have not.  The <code>&lt;Macro name=...&gt;...&lt;/Macro&gt;</code> <em>must</em> be between <code>&lt;Macros&gt;</code> and <code>&lt;/Macros&gt;</code></p>
<blockquote>
<p dir="auto">here is my file contents:</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;NotepadPlus&gt;
    &lt;InternalCommands /&gt;
        &lt;Macro name="Global Search" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="(?=\X)(.)|(?!\X)." /&gt;
            &lt;Action type="3" message="1625" wParam="0" lParam="2" sParam="" /&gt;
            &lt;Action type="3" message="1602" wParam="0" lParam="0" sParam="(?1\(\?=&lsqb;&lsqb;=$1=&rsqb;&rsqb;\)\\X)" /&gt;
            &lt;Action type="3" message="1702" wParam="0" lParam="640" sParam="" /&gt;
            &lt;Action type="3" message="1701" wParam="0" lParam="1609" sParam="" /&gt;
        &lt;/Macro&gt;
    &lt;Macros /&gt;
    &lt;UserDefinedCommands&gt;
        ...
    &lt;/UserDefinedCommands&gt;
    &lt;PluginCommands /&gt;
    &lt;ScintillaKeys /&gt;
&lt;/NotepadPlus&gt;
</code></pre>
</blockquote>
<blockquote>
<p dir="auto">I was trying to find this line: the line containing &lt;/Macros&gt; in shortcuts.xml but did not see it.</p>
</blockquote>
<p dir="auto">Looks like the updated XML libary that Notepad++ now uses is changing empty</p>
<pre><code>    &lt;Macros&gt;
    &lt;/Macros&gt;
</code></pre>
<p dir="auto">into</p>
<pre><code>    &lt;Macros /&gt;
</code></pre>
<p dir="auto">… which is valid XML, but annoying when people are trying to explain how to edit macros manually.</p>
<p dir="auto">To follow <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>’s instructions, you will have to change</p>
<pre><code>    &lt;Macros /&gt;
</code></pre>
<p dir="auto">into</p>
<pre><code>    &lt;Macros&gt;
    &lt;/Macros&gt;
</code></pre>
<p dir="auto">and then put the macro inside it, like:</p>
<pre><code>    &lt;Macros&gt;
        &lt;Macro name="Global Search" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="(?=\X)(.)|(?!\X)." /&gt;
            &lt;Action type="3" message="1625" wParam="0" lParam="2" sParam="" /&gt;
            &lt;Action type="3" message="1602" wParam="0" lParam="0" sParam="(?1\(\?=&lsqb;&lsqb;=$1=&rsqb;&rsqb;\)\\X)" /&gt;
            &lt;Action type="3" message="1702" wParam="0" lParam="640" sParam="" /&gt;
            &lt;Action type="3" message="1701" wParam="0" lParam="1609" sParam="" /&gt;
        &lt;/Macro&gt;
    &lt;/Macros&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/105970</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105970</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 23 Jul 2026 20:27:33 GMT</pubDate></item><item><title><![CDATA[Reply to macro question re: on Thu, 23 Jul 2026 19:07:18 GMT]]></title><description><![CDATA[<p dir="auto">This question is for <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>.<br />
I don’t know if I have modified the shortcuts.xml file correctly, here is my file contents:<br />
&lt;?xml version=“1.0” encoding=“UTF-8”?&gt;<br />
&lt;NotepadPlus&gt;<br />
&lt;InternalCommands /&gt;<br />
&lt;Macro name=“Global Search” Ctrl=“no” Alt=“no” Shift=“no” Key=“0”&gt;<br />
&lt;Action type=“3” message=“1700” wParam=“0” lParam=“0” sParam=“” /&gt;<br />
&lt;Action type=“3” message=“1601” wParam=“0” lParam=“0” sParam=“(?=\X)(.)|(?!\X).” /&gt;<br />
&lt;Action type=“3” message=“1625” wParam=“0” lParam=“2” sParam=“” /&gt;<br />
&lt;Action type=“3” message=“1602” wParam=“0” lParam=“0” sParam=“(?1(?=&lsqb;&lsqb;=$1=&rsqb;&rsqb;)\X)” /&gt;<br />
&lt;Action type=“3” message=“1702” wParam=“0” lParam=“640” sParam=“” /&gt;<br />
&lt;Action type=“3” message=“1701” wParam=“0” lParam=“1609” sParam=“” /&gt;<br />
&lt;/Macro&gt;<br />
&lt;Macros /&gt;<br />
&lt;UserDefinedCommands&gt;<br />
&lt;Command name=“Get PHP help” Ctrl=“no” Alt=“yes” Shift=“no” Key=“112”&gt;<a href="https://www.php.net/$(CURRENT_WORD)" rel="nofollow ugc">https://www.php.net/$(CURRENT_WORD)</a>&lt;/Command&gt;<br />
&lt;Command name=“Wikipedia Search” Ctrl=“no” Alt=“yes” Shift=“no” Key=“114”&gt;<a href="https://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)" rel="nofollow ugc">https://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)</a>&lt;/Command&gt;<br />
&lt;Command name=“Open selected file path in new instance” Ctrl=“no” Alt=“yes” Shift=“no” Key=“117”&gt;$(NPP_FULL_FILE_PATH) $(CURRENT_WORD) -nosession -multiInst&lt;/Command&gt;<br />
&lt;/UserDefinedCommands&gt;<br />
&lt;PluginCommands /&gt;<br />
&lt;ScintillaKeys /&gt;<br />
&lt;/NotepadPlus&gt;</p>
<p dir="auto">I was trying to find this line: the line containing &lt;/Macros&gt; in shortcuts.xml but did not see it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105969</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105969</guid><dc:creator><![CDATA[MurraySobol]]></dc:creator><pubDate>Thu, 23 Jul 2026 19:07:18 GMT</pubDate></item><item><title><![CDATA[Reply to macro question re: on Thu, 23 Jul 2026 18:03:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/murraysobol" aria-label="Profile: MurraySobol">@<bdi>MurraySobol</bdi></a> ,</p>
<p dir="auto">I assume you are talking about <a href="/post/105950">this post</a> by <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> .  If you’re going to create a new topic based on instructions given in a different topic, the least you could do is link to it.  (Or you could have just clicked “reply” on that post, as it would have auto-linked, and kept the discussion in one place rather than fracturing it)</p>
<blockquote>
<p dir="auto">I assume this was a typo??</p>
</blockquote>
<p dir="auto">The same post lists both <code>shortcut.xml</code> and <code>shortcuts.xml</code>, so the incorrect one was most likely a typo on <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>’s part.</p>
<blockquote>
<p dir="auto">I was unable to create a shortcut for this Global Search,</p>
</blockquote>
<p dir="auto"><img src="/assets/uploads/files/1784828450727-73970227-2129-43d4-bb3e-bb4ce3a1c416-image.jpeg" alt="73970227-2129-43d4-bb3e-bb4ce3a1c416-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">It’s there for me.  Is the macro in the <strong>Macro</strong> menu yet?  If not, did you remember to save the <code>shortcuts.xml</code> file and then exit Notepad++ and restart, because Notepad++ doesn’t re-read that config file for new macros when you save it: you have to exit the app and launch it again to have it reload the config files.</p>
<hr />
<p dir="auto"><em>update</em>: Looking at <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> 's original, he said,</p>
<blockquote>
<p dir="auto"><strong>Reminder</strong> :</p>
<ul>
<li>
<p dir="auto">If you installed <strong>N++</strong> with an <strong>installer</strong> package, your <strong>active</strong> <strong><code>shortcuts.xml</code></strong> file should be within the folder <strong><code>%AppData%\Notepad++</code></strong></p>
</li>
<li>
<p dir="auto">If you installed <strong>N++</strong> with a <strong>portable</strong> package, your <strong>active</strong> <strong><code>shortcuts.xml</code></strong> file should be along with the <strong><code>Notepad++.exe</code></strong> file, in your <strong>install</strong> folder</p>
</li>
<li>
<p dir="auto">You may also define a <strong>shortcut</strong> for this <strong><code>Global Search</code></strong> macro, by opening the <strong><code>Settings &gt; Shortcut Mapper... &gt; Macros</code></strong> tab and double-clicking on the <strong><code>Global Search</code></strong> line !</p>
</li>
</ul>
<p dir="auto">Now :</p>
<ul>
<li>
<p dir="auto">Close and restart Notepad++</p>
</li>
<li>
<p dir="auto">Paste the <strong>French</strong> text, below, in a <strong>new</strong> tab ( I rewrote the same <strong>French</strong> text in <strong>different</strong> cases ! )</p>
</li>
</ul>
</blockquote>
<p dir="auto">He should have had the <code>Close and restart Notepad++</code> <em>before</em> the <code>You may also define ...</code> – he probably didn’t notice, when typing up the instructions, that it might cause confusion.</p>
<p dir="auto">Having read my post, he will most likely fix his original, so that it has accurate instructions for future readers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105966</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105966</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 23 Jul 2026 18:03:23 GMT</pubDate></item></channel></rss>