<?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[Manual: chapter Search]]></title><description><![CDATA[<p dir="auto">I was trying to find in the manual the definition of  “Token”,  such as the term appears in “Search &gt; Style All Occurrences of Token”. Unfortunately, I haven’t been able to find it,  although I did find “<em>the word at the caret</em>”. I suspect that this is the meaning of “Token”?  Does it mean that there is no way to style arbitrary strings?</p>
<p dir="auto">Further the following sentence in the manual may possibly pertain to an older version of N++ than 8.4.7:<br />
“<em>You activate smart highlighting through Settings &gt; Preferences &gt; MISC &gt; Smart highlighting, Enable smart highlighting. By default, the highlighting is case insensitive, which may be a problem sometimes. Then just toggle Settings &gt; Preferences &gt; MISC &gt; Highlighting is case sensitive on</em>”.<br />
I did find some settings like this under Settings &gt; Preferences &gt; Highlighting, but not under MISC.  Am I right, or do I overlook something?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23784/manual-chapter-search</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 10:46:43 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23784.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Nov 2022 14:34:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Manual: chapter Search on Thu, 24 Nov 2022 02:00:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> ,<br />
Actually, the wording of that command only verifies that it is already a token. It is simply adding a <code>Style</code> data element to it’s data such as it’s position in a document. :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/81892</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/81892</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Thu, 24 Nov 2022 02:00:01 GMT</pubDate></item><item><title><![CDATA[Reply to Manual: chapter Search on Tue, 22 Nov 2022 20:18:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lycan-thrope" aria-label="Profile: Lycan-Thrope">@<bdi>Lycan-Thrope</bdi></a></p>
<blockquote>
<p dir="auto">it represents something more than what is visible. For instance, the word, may have … colorization…</p>
</blockquote>
<p dir="auto">With that definition, the command <em>Style All Occurrences of Token</em> is prescient, because it only becomes a “token” <em>after</em> the command is executed.  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/81856</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/81856</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 22 Nov 2022 20:18:09 GMT</pubDate></item><item><title><![CDATA[Reply to Manual: chapter Search on Tue, 22 Nov 2022 20:07:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: Paul-Wormer">@<bdi>Paul-Wormer</bdi></a> ,<br />
Just for clarity and precision, as regards programming, a token is an atomic indicator/word that has other value attached, particularly as it is regards, lexical analysis.<br />
See if this works. :)</p>
<pre><code>Token

A lexical token or simply token is a string with an assigned and thus identified meaning. It is structured as a pair consisting of a token name and an optional token value. The token name is a category of lexical unit.[2] Common token names are

    identifier: names the programmer chooses;
    keyword: names already in the programming language;
    separator (also known as punctuators): punctuation characters and paired-delimiters;
    operator: symbols that operate on arguments and produce results;
    literal: numeric, logical, textual, reference literals;
    comment: line, block (Depends on the compiler if compiler implements comments as tokens otherwise it will be stripped).

Examples of token values Token name 	Sample token values
identifier 	x, color, UP
keyword 	if, while, return
separator 	}, (, ;
operator 	+, &lt;, =
literal 	true, 6.02e23, "music"
comment 	/* Retrieves user data */, // must be negative

Consider this expression in the C programming language:

    x = a + b * 2;

The lexical analysis of this expression yields the following sequence of tokens:

    [(identifier, x), (operator, =), (identifier, a), (operator, +), (identifier, b), (operator, *), (literal, 2), (separator, ;)]

A token name is what might be termed a part of speech in linguistics. 
</code></pre>
<p dir="auto"><a href="https://en.wikipedia.org/wiki/Lexical_analysis#Token" rel="nofollow ugc">— text excerpt compliments of Wikipedia.</a><br />
Essentially, it <code>represents</code> something more than what is visible. For instance, the word, may have other data, colorization, bold, italic characteristics to display, but all you see is the word. It is a token, that has additional meaning assigned to it, by the program. A text editor which allows attributes to be applied to various parts of the text is essentially a lexical analyzer that applies other data to the tokens (words). :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/81854</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/81854</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Tue, 22 Nov 2022 20:07:06 GMT</pubDate></item><item><title><![CDATA[Reply to Manual: chapter Search on Tue, 22 Nov 2022 15:27:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: Paul-Wormer">@<bdi>Paul-Wormer</bdi></a> said in <a href="/post/81851">Manual: chapter Search</a>:</p>
<blockquote>
<p dir="auto">I see 3 words</p>
</blockquote>
<p dir="auto">Token is often a synonym for “word”.<br />
But token can also be other things, in this application it can also mean “selected text” (when the <em>Style…</em> command is invoked).<br />
My quoted string example of 3 words maybe went back unnecessarily to processing (“tokenizing”) C strings; sorry.</p>
<blockquote>
<p dir="auto">I presume that it takes many years to know your way around</p>
</blockquote>
<p dir="auto">I suppose so, but this is true of many things in life.<br />
Ideally, over time, the software gets better (more intuitive), so the know-your-way-around time is shortened.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/81852</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/81852</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 22 Nov 2022 15:27:36 GMT</pubDate></item><item><title><![CDATA[Reply to Manual: chapter Search on Tue, 22 Nov 2022 15:18:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/81848">Manual: chapter Search</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: Paul-Wormer">@<bdi>Paul-Wormer</bdi></a> said in <a href="/post/81847">Manual: chapter Search</a>:</p>
<blockquote>
<p dir="auto">A token is a string with word boundaries?</p>
</blockquote>
<p dir="auto">No.  Hopefully my explanation was not <em>that</em> unclear. :-(<br />
I believe you see why a string such as “one two three” has 3 tokens in it?</p>
</blockquote>
<p dir="auto">I see 3 words 😢.  But anyway,  I’m glad that substrings can be colored, not just whole words. Thank you for pointing out what I had to unselect in this jungle of preference boxes. I presume that it takes many years to know your way around them?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/81851</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/81851</guid><dc:creator><![CDATA[Paul Wormer]]></dc:creator><pubDate>Tue, 22 Nov 2022 15:18:24 GMT</pubDate></item><item><title><![CDATA[Reply to Manual: chapter Search on Tue, 22 Nov 2022 15:02:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: Paul-Wormer">@<bdi>Paul-Wormer</bdi></a> said:</p>
<p dir="auto">(Paraphrase) In the manual I saw:</p>
<blockquote>
<p dir="auto">You activate smart highlighting through Settings &gt; Preferences &gt; MISC &gt; Smart highlighting</p>
</blockquote>
<p dir="auto">That text appears <a href="https://npp-user-manual.org/docs/searching/#:~:text=sensitive%20to%20case.-,You%20activate%20smart%20highlighting,-through%20Settings%20%3E%20Preferences" rel="nofollow ugc">HERE</a> in the current manual.</p>
<blockquote>
<p dir="auto">I did find some settings like this under Settings &gt; Preferences &gt; Highlighting, but not under MISC. Am I right</p>
</blockquote>
<p dir="auto">You are indeed correct, the references to <em>MISC</em> are outdated.  I created an issue to fix that for the manual, <a href="https://github.com/notepad-plus-plus/npp-usermanual/issues/439" rel="nofollow ugc">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/81850</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/81850</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 22 Nov 2022 15:02:24 GMT</pubDate></item><item><title><![CDATA[Reply to Manual: chapter Search on Tue, 22 Nov 2022 14:56:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: Paul-Wormer">@<bdi>Paul-Wormer</bdi></a> said in <a href="/post/81847">Manual: chapter Search</a>:</p>
<blockquote>
<p dir="auto">A token is a string with word boundaries?</p>
</blockquote>
<p dir="auto">No.  Hopefully my explanation was not <em>that</em> unclear. :-(<br />
I believe you see why a string such as “one two three” has 3 tokens in it?</p>
<blockquote>
<p dir="auto">A substring cannot be styled with this command?</p>
</blockquote>
<p dir="auto">Yes, it can, but you have to select the substring before running the command (with no selection it grabs the entire string/token at caret), and you have to make sure <em>Match whole word only</em> is not checked in the <em>Highlighting</em> &gt; <em>Style All Occurrences of Token</em> section of the <em>Preferences</em>:</p>
<p dir="auto"><img src="/assets/uploads/files/1669128984227-dcf2fe6a-f342-4d02-b588-5f0f7db733f4-image.png" alt="dcf2fe6a-f342-4d02-b588-5f0f7db733f4-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/81848</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/81848</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 22 Nov 2022 14:56:26 GMT</pubDate></item><item><title><![CDATA[Reply to Manual: chapter Search on Tue, 22 Nov 2022 14:49:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/81846">Manual: chapter Search</a>:<br />
(/post/81845):</p>
<blockquote>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: Paul-Wormer">@<bdi>Paul-Wormer</bdi></a> said in [Manual: chapter Search] &gt; I suspect that this is the meaning of “Token”?</p>
</blockquote>
</blockquote>
<blockquote>
<p dir="auto">Typically, a token refers to a bit of text, probably without spaces, e.g. “one two three” has 3 tokens in it.</p>
</blockquote>
<p dir="auto">A token is a string with word boundaries? A substring cannot be styled with this command?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/81847</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/81847</guid><dc:creator><![CDATA[Paul Wormer]]></dc:creator><pubDate>Tue, 22 Nov 2022 14:49:38 GMT</pubDate></item><item><title><![CDATA[Reply to Manual: chapter Search on Tue, 22 Nov 2022 14:55:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: Paul-Wormer">@<bdi>Paul-Wormer</bdi></a> said in <a href="/post/81845">Manual: chapter Search</a>:</p>
<blockquote>
<p dir="auto">I did find “the word at the caret”.<br />
I suspect that this is the meaning of “Token”?</p>
</blockquote>
<p dir="auto">Your post relates to why I recently requested the user manual stop using “token” as much as it did – because IMO most people don’t know what this term means.  This request was granted.</p>
<p dir="auto">Unfortunately, since the word is still used in the software itself, it shouldn’t have been entirely removed from the manual, and definitely defined somewhere therein.  Ideally, “token” would be purged from the software itself, and then we no longer have to think about it.</p>
<p dir="auto">BTW, I believe “token” in context, alludes back to old string processing in C, where the <code>strtok()</code> function (“string token”, or really, “tokenize string”) was well-used, see <a href="https://cplusplus.com/reference/cstring/strtok/" rel="nofollow ugc">REFERENCE</a>.</p>
<p dir="auto">Being at heart a “coder’s editor”, Notepad++ menus were originally designed with the thought that “everyone knows what a token is”.</p>
<p dir="auto">Typically, a token refers to a bit of text, probably without spaces, e.g. “one two three” has 3 tokens in it.</p>
<p dir="auto">The menu item <em>Style All Occurrences of Token</em> hints that when used without selected text, it will grab the “token” (really, “word”) at the caret, and use that.  Obviously, with selected text, the “token” part of the command is misleading.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/81846</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/81846</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 22 Nov 2022 14:55:13 GMT</pubDate></item></channel></rss>