<?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[Multiword highlight]]></title><description><![CDATA[<p dir="auto">Ive got a text #1 file that looks like this:<br />
Xxxxxxxx<br />
Zzzzzzzz<br />
Ccccccc<br />
Vvvvvvv<br />
Bbbbbb<br />
Nnnnnn</p>
<p dir="auto">And i have another #2 text file with lots of words.<br />
What i want to do is if #2 text file has a word that matches #1 i want it to mark it but also mark the one above. So if search for vvvvvvv it should mark both vvvvvvv and cccccccc.<br />
Also the text file contains 10k+ lines so I can’t do it manually. If notepad++ cant do it is there any other way to do it?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14679/multiword-highlight</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 03:50:22 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14679.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Oct 2017 22:24:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Multiword highlight on Sat, 28 Oct 2017 21:25:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/10202">@Vini-Dope</a></p>
<p dir="auto">Well, if you can’t share it globally you probably shouldn’t share it with me.</p>
<p dir="auto">I made a much bigger dataset (100000 lines of random text) and was able to duplicate your bad result (all text selected after the Mark operation).  To be honest I don’t know what is going on with that…maybe it is just “too much” for the regex engine…</p>
<p dir="auto">Here’s something else you can try.  Take your word list and replace all of the line endings between the words with the vertical bar: <code>|</code></p>
<p dir="auto">You can do this by searching the word list for <code>\R</code> and replacing with <code>|</code>– regular expression search of course.</p>
<p dir="auto">Thus you’ll end up with something like this:  <code>Xxxxxxxx|Zzzzzzzz|Ccccccc|Vvvvvvv|Bbbbbb|Nnnnnn</code></p>
<p dir="auto">Take that long string and copy and paste it into the <strong>Find-what</strong> zone and do a <strong>Mark</strong> (or a <strong>Find</strong>) as described in <em>Steps 2 and 3</em> above.  This should find your words in your large document.</p>
<p dir="auto">Assuming your words-to-find average 10 characters in length, you can in theory use this technique on roughly 200 words (the limit of the Find-what zone is 2046 characters.  I did not try that many with my experiment, but in theory at least…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27695</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27695</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Sat, 28 Oct 2017 21:25:45 GMT</pubDate></item><item><title><![CDATA[Reply to Multiword highlight on Sat, 28 Oct 2017 13:51:49 GMT]]></title><description><![CDATA[<p dir="auto">Could I share it to you privately?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27679</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27679</guid><dc:creator><![CDATA[Vini Dope]]></dc:creator><pubDate>Sat, 28 Oct 2017 13:51:49 GMT</pubDate></item><item><title><![CDATA[Reply to Multiword highlight on Sat, 28 Oct 2017 13:30:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/10202">@Vini-Dope</a></p>
<p dir="auto">Both (red)<strong>Mark</strong>ing and <strong>Find-Next</strong> worked fine for me with a small data set that I made up.  If your some/all of your data where you see problems with this technique is okay to share, put it up on <a href="http://textuploader.com/" rel="nofollow ugc">http://textuploader.com/</a> and post a link to it here and I’ll have a look.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27678</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27678</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Sat, 28 Oct 2017 13:30:43 GMT</pubDate></item><item><title><![CDATA[Reply to Multiword highlight on Sat, 28 Oct 2017 13:18:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/374">@scott-sumner</a> :</p>
<p dir="auto">I tried what you said, if i use “Find next” it does what it supposed to do and goes through all the words in the word-list. However when I press Find next 3x it gets messed up and just marks everything instead of the correct words…<br />
Same happends with Mark.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27677</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27677</guid><dc:creator><![CDATA[Vini Dope]]></dc:creator><pubDate>Sat, 28 Oct 2017 13:18:33 GMT</pubDate></item><item><title><![CDATA[Reply to Multiword highlight on Wed, 25 Oct 2017 14:16:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/10202">@Vini-Dope</a> :</p>
<p dir="auto">A variant on <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3662">@Claudia-Frank</a> 's idea could be to use the <em><strong>Styling</strong></em> feature (see <strong>Search</strong> menu -&gt; <strong>Mark All</strong> -&gt; <strong>Using 1st Style</strong> and related) to highlight all of your words, possibly in different colors.  But this is a manual process for each word and doesn’t really take what you want to do to its full extent.</p>
<p dir="auto">Here’s another idea that also doesn’t go as far as you want but may be useful anyway. With the basic idea inherited from <a href="https://notepad-plus-plus.org/community/topic/14548/help-replacing" rel="nofollow ugc">this thread</a>, try the following:</p>
<p dir="auto">Step 1: Add this to the <em>bottom</em> of <strong>text file #2</strong> (temporarily, can be removed later):</p>
<pre><code>===word-list===
Xxxxxxxx
Zzzzzzzz
Ccccccc
Vvvvvvv
Bbbbbb
Nnnnnn
</code></pre>
<p dir="auto">Step 2:  Invoke the <strong>Mark…</strong> feature (<strong>Search</strong> menu) and set up the following:</p>
<p dir="auto"><strong>Find what</strong> zone: <code>(?-i)\&lt;(\w+)\&gt;(?s)(?=.*?^===word-list===$.*?\&lt;\1\&gt;)</code><br />
<strong>Wrap around</strong> checkbox: <em><strong>ticked</strong></em><br />
<strong>Search mode</strong> radio-button: <code>Regular expression</code></p>
<p dir="auto">Step 3:  Press the <strong>Mark All</strong> button</p>
<p dir="auto">This will highlight in red all of the occurrences of the words from the word list in the larger portion of your <strong>text file #2</strong>.  Again this doesn’t meet your original requirements, which are a bit esoteric, but could prove helpful anyway.</p>
<p dir="auto">If this (or <em>ANY</em> posting on the <strong>Notepad++ Community</strong> site) is useful, don’t reply with a <em>“thanks”</em>, simply <strong>up-vote</strong> ( click the <code>^</code> in the <code>^ 0 v</code> area on the right ).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27605</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27605</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 25 Oct 2017 14:16:35 GMT</pubDate></item><item><title><![CDATA[Reply to Multiword highlight on Wed, 25 Oct 2017 11:51:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/10202">@Vini-Dope</a></p>
<p dir="auto">first, afaik, npp hasn’t such a function, but what it has is highlighting in second view<br />
which means if you doubleclick a word in first view, the same word do get highlight in second view.<br />
Available under <strong>settings-&gt;preferences</strong></p>
<p dir="auto"><img src="https://camo.nodebb.org/fcb38f3e2c6693118823e6bd9761598bf30d5e0c?url=https%3A%2F%2Fi.imgur.com%2FyvCpSMo.png" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto">If this doesn’t suite you, than, theoretically, it is possible to write a python script, which means<br />
you need to install the python script plugin in order to be able to make this work. If you want to<br />
go this way, let us know what exactly nees to be done because it is a huge different if your text looks like</p>
<p dir="auto">word1<br />
word2<br />
word3<br />
…</p>
<p dir="auto">or</p>
<p dir="auto">word1 word2 word3 word4 word5 word6 word7 word8 word9 word10<br />
word11 word12 …</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27594</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27594</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Wed, 25 Oct 2017 11:51:55 GMT</pubDate></item></channel></rss>