<?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[Problem with style token]]></title><description><![CDATA[<p dir="auto">I often need to highlight a combination of three digits, start parentheses, some more digits and end parentheses.<br />
I´ve been using npp for a very long time and this has never been any problem, just until now. As soon as I mark the start parentheses, it´s not possible to highlight.</p>
<p dir="auto">421(0.248)<br />
This for example, I can highlight 421 and 0.248, but I can´t highlight the entire string.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21472/problem-with-style-token</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 17:38:03 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21472.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Jul 2021 08:29:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with style token on Fri, 23 Jul 2021 06:28:58 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><br />
Thank you so very much for your time and effort!<br />
Now I can make sure that npp works in the way I want it to.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68222</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68222</guid><dc:creator><![CDATA[Markus Sulk]]></dc:creator><pubDate>Fri, 23 Jul 2021 06:28:58 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with style token on Wed, 14 Jul 2021 13:39:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/markus-sulk" aria-label="Profile: Markus-Sulk">@<bdi>Markus-Sulk</bdi></a> ,</p>
<blockquote>
<p dir="auto"><img src="https://community.notepad-plus-plus.org/assets/uploads/files/1626255453104-6bf8e482-f246-4639-956b-fb953fcae38b-image.png" alt="" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">Please note that your right-click context menu appears to be out of date, compared to my fresh unzips of v8.0, v8.1 and v8.1.1: There should be both “Style all occurrences of token” and “Style one token”<br />
<img src="/assets/uploads/files/1626267291559-0f54b780-d335-4dd3-a406-7ff523bb6ca5-image.png" alt="0f54b780-d335-4dd3-a406-7ff523bb6ca5-image.png" class=" img-fluid img-markdown" /><br />
(These line up with the v8.x menu system of <strong>Search &gt; Mark All</strong> and <strong>Search &gt; Mark One</strong> that I referenced in my first reply.)</p>
<p dir="auto">When you look at <code>contextMenu.xml</code> (<strong>Settings &gt; Edit popup contextMenu</strong>), you should have both these groups:</p>
<pre><code>        &lt;Item FolderName="Style all occurrences of token" id="43022"/&gt;
        &lt;Item FolderName="Style all occurrences of token" id="43024"/&gt;
        &lt;Item FolderName="Style all occurrences of token" id="43026"/&gt;
        &lt;Item FolderName="Style all occurrences of token" id="43028"/&gt;
        &lt;Item FolderName="Style all occurrences of token" id="43030"/&gt;
		
        &lt;Item FolderName="Style one token" id="43062"/&gt;
        &lt;Item FolderName="Style one token" id="43063"/&gt;
        &lt;Item FolderName="Style one token" id="43064"/&gt;
        &lt;Item FolderName="Style one token" id="43065"/&gt;
        &lt;Item FolderName="Style one token" id="43066"/&gt;
</code></pre>
<p dir="auto">If you only have one group (probably with id=“43022”-“43030” but a different FolderName), then you’ll want to paste the ones I just posted overtop, save, exit Notepad++, and re-run Notepad++.  Now your right-click context menu should have both “style all occurrences of token” and “style one token”.</p>
<p dir="auto">-----<br />
I originally had a different reply posted after this, but some experiments after I posted proved that the rest of what I said was wrong, so I deleted it.<br />
-----</p>
<p dir="auto">New experiments show that it’s still affected by the checkmarks in the <strong>Preferences &gt; Highlighting</strong> settings.</p>
<ol>
<li>
<p dir="auto">Paste in data:</p>
<pre><code>421(0.248)

13:09.69.51-900: 421(0.248):
13:09.69.51-900: 421(0.248)
13:09.69.51-900: 421(0.248):
13:09.69.51-900: 421(0.248)
13:09.69.51-900: 421(0.248):
13:09.69.51-900: 421(0.248)
13:09.69.51-900: 421(0.248):
13:09.69.51-900: 421(0.248)
</code></pre>
<p dir="auto"><em>Note</em>: some have colons after, some do not; this is important to show my point</p>
</li>
<li>
<p dir="auto">Take the default settings in <strong>Preferences &gt; Highlighting</strong>, select one without the colon and try to select one without the colon: It will not show any smart-match highlighting, and will only apply the marking-style to the ones without colons:<br />
<img src="https://i.imgur.com/ho4dKmo.gif" alt="" class=" img-fluid img-markdown" /></p>
</li>
<li>
<p dir="auto">Change <strong>Preferences &gt; Highlighting</strong> to un-check <strong>Mark All &gt; ☐ Match whole word only</strong>: now if you select one without the colon: it will still not show any smart-match highlighting, but <em>will</em> apply to the marking-style to the ones with <em>and</em> without colons: <img src="https://i.imgur.com/fvbcp1j.gif" alt="" class=" img-fluid img-markdown" /></p>
</li>
<li>
<p dir="auto">I won’t do a third video, but if you <em>also</em> un-check <strong>Smart Highlighting &gt; Matching &gt; ☐ Match whole word only</strong>, it will do the green smart-matching while you’re selecting it, even when you cross a boundary (like I showed in my original static screenshots)</p>
</li>
</ol>
<p dir="auto">There is a section in the manual about how the <a href="https://npp-user-manual.org/docs/preferences/#highlighting" rel="nofollow ugc"><strong>Highlighting</strong> preferences</a> affect things, but given that “Mark” has two meanings in Notepad++ (<strong>Search &gt; Mark…</strong> which has a <strong>Mark All</strong> button, vs <strong>Search &gt; Mark All</strong>/<strong>Search &gt; Mark One</strong> which are called <strong>Style all…</strong>/<strong>Style one…</strong> in the right-click context menu), that may be ambiguous as to which is meant for that preference.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67883</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67883</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 14 Jul 2021 13:39:57 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with style token on Wed, 14 Jul 2021 10:05:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/markus-sulk" aria-label="Profile: Markus-Sulk">@<bdi>Markus-Sulk</bdi></a></p>
<p dir="auto">For the selecting issue:<br />
on the server where it is working, check the “word character list”</p>
<p dir="auto"><img src="/assets/uploads/files/1626256453075-b8ad3dac-6a19-4a27-a07f-e28e8b1356fa-image.png" alt="b8ad3dac-6a19-4a27-a07f-e28e8b1356fa-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I assume this has been modified.</p>
<p dir="auto">The styling issue looks like it is a bug.<br />
Fresh 8.1.1 version behaves like reported.</p>
<p dir="auto"><img src="/assets/uploads/files/1626256989590-d328a0fb-76ef-46a6-8f16-a291310ce647-image.png" alt="d328a0fb-76ef-46a6-8f16-a291310ce647-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/67873</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67873</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 14 Jul 2021 10:05:51 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with style token on Wed, 14 Jul 2021 09:40:29 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your reply.</p>
<p dir="auto">I´ve got different versions of npp. On one server this is the version:</p>
<p dir="auto"><img src="/assets/uploads/files/1626254930870-2c790c70-ade7-44b8-be04-38f1202778ca-image.png" alt="2c790c70-ade7-44b8-be04-38f1202778ca-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Here everything works just fine, just the way I want it. Default settings does the job;</p>
<p dir="auto"><img src="/assets/uploads/files/1626254985642-a8030326-f9e8-4f7f-8b53-cf86fdd7ebe2-image.png" alt="a8030326-f9e8-4f7f-8b53-cf86fdd7ebe2-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">873(0.59) is highlighted with style token nr 1. This is with match whole word only ticked.</p>
<p dir="auto">As you can see, just marking it wont highlight it:</p>
<p dir="auto"><img src="/assets/uploads/files/1626255099665-b302d1ca-acee-4d72-b977-60d6d06e6a8e-image.png" alt="b302d1ca-acee-4d72-b977-60d6d06e6a8e-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Although giving it a style token works.</p>
<p dir="auto">Then I have another server with this version:</p>
<p dir="auto"><img src="/assets/uploads/files/1626255155214-b095716f-4128-4e80-9bd1-d47b40a47560-image.png" alt="b095716f-4128-4e80-9bd1-d47b40a47560-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This is where it gets very strange. :-)</p>
<p dir="auto"><img src="/assets/uploads/files/1626255184389-25f1e763-b4d5-475c-a696-5014a2aee61c-image.png" alt="25f1e763-b4d5-475c-a696-5014a2aee61c-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I´ve copied 421(0.248) from row 6 to row nr 1, so the format is the very same.</p>
<p dir="auto">If I mark the first row, it doesn´t get highlighted:</p>
<p dir="auto"><img src="/assets/uploads/files/1626255292385-88dfc212-f4fd-4ba0-975d-1e2331acd62f-image.png" alt="88dfc212-f4fd-4ba0-975d-1e2331acd62f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">These are the settings:<br />
<img src="/assets/uploads/files/1626255317950-5d5783cd-1ae2-4baa-a13e-e5d9ada92657-image.png" alt="5d5783cd-1ae2-4baa-a13e-e5d9ada92657-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">If I mark the same string on row 6, it still doesn´t get highlighted:</p>
<p dir="auto"><img src="/assets/uploads/files/1626255350373-334bfa4e-c91a-478a-ae9e-af29b1557955-image.png" alt="334bfa4e-c91a-478a-ae9e-af29b1557955-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This is as it´s supposed to due to my settings.</p>
<p dir="auto">However, if I mark the first row and add a style token to it, it works, but just at the very first row:</p>
<p dir="auto"><img src="/assets/uploads/files/1626255453104-6bf8e482-f246-4639-956b-fb953fcae38b-image.png" alt="6bf8e482-f246-4639-956b-fb953fcae38b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1626255467451-6157a1fd-81aa-4a2a-b318-2a659cf395ad-image.png" alt="6157a1fd-81aa-4a2a-b318-2a659cf395ad-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I figured the : might have something to do with it so once again I copied the string from row 6, including the :.</p>
<p dir="auto"><img src="/assets/uploads/files/1626255561174-6cf6ef61-14c2-4b35-aa9c-d3027eec3dd2-image.png" alt="6cf6ef61-14c2-4b35-aa9c-d3027eec3dd2-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Then I get this strange result:</p>
<p dir="auto"><img src="/assets/uploads/files/1626255581806-001a80fd-5d95-4e4b-8bbd-af1d7b7ec074-image.png" alt="001a80fd-5d95-4e4b-8bbd-af1d7b7ec074-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">As you can see, row 4 is marked, but the token only applied to the string on row 1.</p>
<p dir="auto">This just beats me :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67871</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67871</guid><dc:creator><![CDATA[Markus Sulk]]></dc:creator><pubDate>Wed, 14 Jul 2021 09:40:29 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with style token on Tue, 13 Jul 2021 13:07:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/markus-sulk" aria-label="Profile: Markus-Sulk">@<bdi>Markus-Sulk</bdi></a> ,</p>
<p dir="auto">Could you be more specific?</p>
<ul>
<li>What version are you using (<strong>?</strong>-menu, <strong>Debug Info</strong>)</li>
<li>How are you trying to apply the “style token” or “mark” (Notepad++ has many similar concepts with similar names)</li>
</ul>
<p dir="auto">Because you said “style token”, I thought maybe <strong>Search &gt; Mark One &gt; Using 1st Style</strong>, which works:<br />
<img src="/assets/uploads/files/1626180900423-e4f8d9a9-e710-4bb1-b544-5ad054d580dd-image.png" alt="e4f8d9a9-e710-4bb1-b544-5ad054d580dd-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Or, select the first <code>421(0.248)</code> when there are multiple instances of that in the document, then <strong>Search &gt; Mark All &gt; Using 1st Style</strong>, which also works:<br />
<img src="/assets/uploads/files/1626181203468-b17990bb-78f7-4f2f-adca-f40dc068bcda-image.png" alt="b17990bb-78f7-4f2f-adca-f40dc068bcda-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">But maybe you mean the smart highlighting, where you select one instance, it will temporarily highlight all the matches.  If I do that on the <code>421</code> or on the <code>248</code>, it does the highlighting:<br />
<img src="/assets/uploads/files/1626181298694-1160c431-cc2a-4a7e-a106-1a321bd1a9dd-image.png" alt="1160c431-cc2a-4a7e-a106-1a321bd1a9dd-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1626181311388-36eb13c9-8c45-4750-a389-84c09ea44f90-image.png" alt="36eb13c9-8c45-4750-a389-84c09ea44f90-image.png" class=" img-fluid img-markdown" /><br />
… but if I cross over the <code>.</code> in <code>0.248</code> or across a parenthesis, then it won’t:<br />
<img src="/assets/uploads/files/1626181478621-23b985c4-5dd3-416b-857f-fd461c4f5885-image.png" alt="23b985c4-5dd3-416b-857f-fd461c4f5885-image.png" class=" img-fluid img-markdown" /><br />
… As you might be able to guess from my wider screenshot, which shows <strong>Settings &gt; Preferences &gt; Highlighting</strong>, I am about to show you that by un-checking the <strong>Smart Highlighting &gt; Matching &gt; ☐ Match whole word only</strong>, it will go back to working, even if you cross a boundary:<br />
<img src="/assets/uploads/files/1626181564309-217775c0-8c33-45bf-9a55-325acd82861b-image.png" alt="217775c0-8c33-45bf-9a55-325acd82861b-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1626181580956-30119782-f5ea-486b-b4f9-53a785280bf8-image.png" alt="30119782-f5ea-486b-b4f9-53a785280bf8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Hope this helps</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67839</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67839</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 13 Jul 2021 13:07:36 GMT</pubDate></item></channel></rss>