<?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>Sun, 26 Jul 2026 10:37:04 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 Sun, 26 Jul 2026 06:58:58 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/troglo37" aria-label="Profile: troglo37">@<bdi>troglo37</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">OK. So let’s start off <strong>slow</strong> !</p>
<p dir="auto">First of all, I’d like to <strong>check</strong> with you to make sure we’re on the same page about our goal :</p>
<p dir="auto">If we begin with this text :</p>
<pre><code class="language-diff">Our friends Sarunas, Dorde, Orjan, Pawel, Stefania, Angel and Ugur had already left
Our friends Šarūnas, Đorđe, Ørjan, Paweł, Ștefania, Ángel and Uğur had already left
Our friends Šarūnas, Đorđe, Ørjan, Paweł, Ștefania, Ángel and Uğur had already left
</code></pre>
<p dir="auto">As you can notice these lines are quite <strong>similar</strong> and differ only because of some <strong>accents</strong> in the first names :</p>
<ul>
<li>
<p dir="auto">The <strong>first</strong> line does <strong>not</strong> contain any accent</p>
</li>
<li>
<p dir="auto">The <strong>second</strong> line contains some characters with an <strong>accent</strong>. Here are their <strong>Unicode</strong> values :</p>
</li>
</ul>
<pre><code class="language-diff">Š = 0160
ū = 016B
Đ = 0110
đ = 0111
Ø = 00D8
ł = 0142
Ș = 0218
Á = 00C1
ğ = 011F
</code></pre>
<ul>
<li>The <strong>third</strong> line contains — when it was possible to find an <strong>equivalent</strong> — a classical <strong><code>ASCII</code></strong> letter immediately followed with a <strong>combining diacritical mark</strong> — an accent — thus <strong>two</strong> characters for <strong>one</strong> glyph. However, the letters <strong><code>Đ, đ, Ø and ł</code></strong>, without equivalent, are <strong>single</strong> characters only, like above !</li>
</ul>
<pre><code class="language-diff">S + 030C = Š
u + 0304 = ū
Đ = 0110
đ = 0111
Ø = 00D8
ł = 0142
S + 0326 = Ș
A + 0301 = Á
g + 0306 = ğ
</code></pre>
<hr />
<p dir="auto">Now, I assume you’d be interested in finding <strong>any</strong> of these <strong>three</strong> syntaxes — or others like them — at the <strong>same</strong> time, in your file(s), right ?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/troglo37" aria-label="Profile: troglo37">@<bdi>troglo37</bdi></a>, just tell me if this is your <strong>goal</strong> ?</p>
<p dir="auto">See you later !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105976</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105976</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 26 Jul 2026 06:58:58 GMT</pubDate></item><item><title><![CDATA[Reply to macro question re: on Sat, 25 Jul 2026 10:17:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> I’m sorry, but I’m totally confused by what I’ve seen so far.<br />
Can you or anyone make one post step by step, everything from the beginning to the end of what needs to be done?<br />
It would be extremely helpful for me and others who aren’t programmer-savvy.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105975</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105975</guid><dc:creator><![CDATA[Troglo37]]></dc:creator><pubDate>Sat, 25 Jul 2026 10:17:48 GMT</pubDate></item><item><title><![CDATA[Reply to macro question re: on Fri, 24 Jul 2026 03:23:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/murraysobol" aria-label="Profile: murraysobol">@<bdi>murraysobol</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I corrected, in my <strong>first</strong> post to <a class="plugin-mentions-user plugin-mentions-a" href="/user/troglo37" aria-label="Profile: troglo37">@<bdi>troglo37</bdi></a>, the spelling <strong>mistake</strong> on the word <strong><code>shortcuts.xml</code></strong> and rearranged a <strong>few</strong> lines to make my description more <strong>precise</strong> !</p>
<hr />
<p dir="auto">Of course, <a class="plugin-mentions-user plugin-mentions-a" href="/user/murraysobol" aria-label="Profile: murraysobol">@<bdi>murraysobol</bdi></a>, it’s better to use the <strong>second</strong> version of my macro. Note, however, that this macro generally replaces a fairly <strong>short</strong> piece of text with a rather <strong>long</strong> string of characters ! Therefore, you may need to change a <strong>default</strong> setting in the <strong><code>Search</code></strong> section of <strong><code>Preferences...</code></strong> if the resulting regular expression becomes too <strong>long</strong> !</p>
<p dir="auto">For example, in my <strong>last</strong> post to <a class="plugin-mentions-user plugin-mentions-a" href="/user/troglo37" aria-label="Profile: troglo37">@<bdi>troglo37</bdi></a>, the two lines of the <strong>test</strong> contains, respectively, <strong><code>124</code></strong> and <strong><code>135</code></strong> chars and the <strong>resulting</strong> regexes contains, both, <strong><code>1,612</code></strong> chars !</p>
<p dir="auto">So, go to <strong><code>Settings &gt; Preferences... &gt; Searching</code></strong> section. Then, in the part <strong><code>When Find Dialog is Invoked</code></strong>, move to the <strong><code>Max Characters to Auto-Fill Find field from Selection</code></strong> option and modify the <strong>default</strong> <strong><code>1024</code></strong> value to a <strong>greater</strong> value. Personally, I use the <strong>maximum</strong> <strong><code>16383</code></strong> value !</p>
<p dir="auto">However, it’s obvious that your initial selection must be as <strong>short</strong> as possible This macro will be used <strong>mainly</strong> to get the different <strong>spellings</strong> of names or surnames !</p>
<hr />
<p dir="auto">An exemple with this <em>INPUT</em> text, below :</p>
<pre><code class="language-diff">Our friends Šarūnas, Đorđe, Ørjan, Paweł, Ștefania, Ángel and Uğur had already left
Our friends Sarūnas, Đorđe, Orjan, Paweł, Ștefania, Ángel and Uğur had already left
Our friends Šarunas, Đorđe, Ørjan, Pawel, Stefania, Ángel and Uğur had already left
Our friends Šarūnas, Dorde, Ørjan, Paweł, Ștefania, Angel and Ugur had already left
</code></pre>
<p dir="auto">Now if I copy, at random, the <strong>third</strong> line of this <em>INPUT</em> text somewhere else, select that line and run the <strong><code>Global Search</code></strong> macro, I get this regex :</p>
<pre><code class="language-diff">(?=&lsqb;&lsqb;=O=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=u=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=r=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;= =&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=f=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=r=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=i=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=e=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=n=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=d=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=s=&rsqb;&rsqb;)\X(?=&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b;&lsqb;=r=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=e=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=a=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=d=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=y=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;= =&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=l=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=e=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=f=&rsqb;&rsqb;)\X(?=&lsqb;&lsqb;=t=&rsqb;&rsqb;)\X
</code></pre>
<p dir="auto">Finally, if you select the <strong><code>1,079</code></strong> characters of this regex and open the <strong>Find</strong> dialog with <strong><code>Ctrl + F</code></strong>, you can <strong>easily</strong> verify that it matches, successively, the <strong>four</strong> lines of the <em>INPUT</em> text. Whaooou ;-))</p>
<p dir="auto">Note that I could have chosen the <strong>first</strong>, the <strong>second</strong> or the <strong>fourth</strong> line, either. The <strong>resulting</strong> regexes would have matched the <strong>four</strong> lines of the <em>INPUT</em> text, as well !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105971</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105971</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 24 Jul 2026 03:23:01 GMT</pubDate></item><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>