<?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[Save Search Results with Highlighting]]></title><description><![CDATA[<p dir="auto">Is there any way to copy the results of a “find in files” search and retain the highlighting? Ctrl-C saves all the data I want, but not the handy highlighting (green file name, yellow hits). Even a python method would be great. NPPExport ignores the results window and only grabs things from the document window. I thought I saw a post about this at one time, but my google-foo must be weak because I can’t find anything.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15881/save-search-results-with-highlighting</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 08:26:45 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15881.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Jun 2018 19:44:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Save Search Results with Highlighting on Thu, 14 Jun 2018 04:19:51 GMT]]></title><description><![CDATA[<p dir="auto">Drawing on other people’s knowledge, I managed to make a plug-in for highlighting using regular expressions<br />
<a href="http://purebasic.info/phpBB3ex/viewtopic.php?p=89420#p89420" rel="nofollow ugc">http://purebasic.info/phpBB3ex/viewtopic.php?p=89420#p89420</a><br />
<a href="http://rgho.st/8nRX9DYpj" rel="nofollow ugc">http://rgho.st/8nRX9DYpj</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/32993</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32993</guid><dc:creator><![CDATA[AZJIO AZJIO]]></dc:creator><pubDate>Thu, 14 Jun 2018 04:19:51 GMT</pubDate></item><item><title><![CDATA[Reply to Save Search Results with Highlighting on Wed, 06 Jun 2018 23:53:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cipher-1024" aria-label="Profile: cipher-1024">@<bdi>cipher-1024</bdi></a></p>
<p dir="auto">By the way - I do have a strange phenomenon.<br />
If the cursor is on the end of a large buffer, then styling takes quite long whereas<br />
if the cursor is on the beginning of the document it styles it instantly.</p>
<p dir="auto">Not sure why this happens, assume scintilla internals (?) - needs investigation.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32842</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32842</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Wed, 06 Jun 2018 23:53:33 GMT</pubDate></item><item><title><![CDATA[Reply to Save Search Results with Highlighting on Wed, 06 Jun 2018 23:49:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cipher-1024" aria-label="Profile: cipher-1024">@<bdi>cipher-1024</bdi></a></p>
<p dir="auto">Hi,</p>
<p dir="auto">you are right - haven’t even thought about regex searches at all.<br />
Thank you very much for the improvements has been added<br />
to gist with slight modification to get even more close to npps output.</p>
<p dir="auto"><img src="https://i.imgur.com/aH3qazY.png" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32841</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32841</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Wed, 06 Jun 2018 23:49:03 GMT</pubDate></item><item><title><![CDATA[Reply to Save Search Results with Highlighting on Wed, 06 Jun 2018 16:21:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a></p>
<p dir="auto">I swapped out the standard string search for the search_term with a regex one:</p>
<pre><code>        # search_term_position = line.lower().find(search_term)
        # style_it(HIT_WORD, editor.positionFromLine(i)+search_term_position, len(search_term))
        match = re.search(search_term, line, re.IGNORECASE)
        if match is not None:
            mlen = match.end() - match.start()
            style_it(HIT_WORD, editor.positionFromLine(i)+match.start(), mlen)
</code></pre>
<p dir="auto">That may make it a little dirtier, but then the highlighting works for normal searches that don’t contain regex special characters as well as regex search results. I didn’t see any way for the python plugin to probe the UI to see what the last search type was so making it always assume a regex search works best for me.</p>
<p dir="auto">Thanks again Claudia.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32831</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32831</guid><dc:creator><![CDATA[cipher-1024]]></dc:creator><pubDate>Wed, 06 Jun 2018 16:21:39 GMT</pubDate></item><item><title><![CDATA[Reply to Save Search Results with Highlighting on Wed, 06 Jun 2018 02:40:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/azjio-azjio" aria-label="Profile: AZJIO-AZJIO">@<bdi>AZJIO-AZJIO</bdi></a> ,<br />
Thanks for the UDL!  I can easily “MARK” the search criteria and be good to go. I must be getting old because I’m not groovy enough for a dark theme (you kids still say groovy, don’t you?). Thanks for posting, I’m keeping that in my UDL list.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a> ,<br />
Quick and dirty is my middle name. Your script works perfectly on normal searches. This board would be diminished without you. Thanks for all you do.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32822</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32822</guid><dc:creator><![CDATA[cipher-1024]]></dc:creator><pubDate>Wed, 06 Jun 2018 02:40:29 GMT</pubDate></item><item><title><![CDATA[Reply to Save Search Results with Highlighting on Wed, 06 Jun 2018 00:54:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cipher-1024" aria-label="Profile: cipher-1024">@<bdi>cipher-1024</bdi></a></p>
<p dir="auto"><a href="https://gist.github.com/ClaudiaFrank/a2c06441a5ba6d49505a4cea9d3d4ac7" rel="nofollow ugc">quick_and_dirty_python_lexer</a></p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32821</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32821</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Wed, 06 Jun 2018 00:54:20 GMT</pubDate></item><item><title><![CDATA[Reply to Save Search Results with Highlighting on Tue, 05 Jun 2018 22:53:50 GMT]]></title><description><![CDATA[<p dir="auto">Import a new syntax with highlighting<br />
<a href="https://pastebin.com/ZeWQRppr" rel="nofollow ugc">https://pastebin.com/ZeWQRppr</a></p>
<p dir="auto">I can give a black theme</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32819</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32819</guid><dc:creator><![CDATA[AZJIO AZJIO]]></dc:creator><pubDate>Tue, 05 Jun 2018 22:53:50 GMT</pubDate></item></channel></rss>