<?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[Style for Saved Search files?]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I am kind of newbie to Notepad++ “internals”. The question here is for the portable version, if that makes a difference at all …</p>
<p dir="auto">I like the search capabilities and how results are shown (colors for files and findings).</p>
<p dir="auto">Now, would like to copy the result (which sometimes is quite big and for me is like a “work-to-be-done-list”) to a file and re-open that file in another instance of NP++. The copying works just fine, but I fail to apply the same (or even an individual) color-scheme to that file.</p>
<p dir="auto">I tried to select “search result” from the language menu but could not find it. So, I made a new entry in the “stylers.xml” AND the “langs.xml” … but still I fail.</p>
<p dir="auto">Any help?</p>
<p dir="auto">I would have attached the two xml files, but could not find how.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21088/style-for-saved-search-files</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 09:00:54 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21088.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Apr 2021 10:41:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Style for Saved Search files? on Wed, 28 Apr 2021 17:17:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a></p>
<p dir="auto">I haven’t checked the source code, but I assume that no styles are set, probably because npp doesn’t expect the lexer to be assigned in the default views.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65425</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65425</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 28 Apr 2021 17:17:55 GMT</pubDate></item><item><title><![CDATA[Reply to Style for Saved Search files? on Wed, 28 Apr 2021 16:26:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> said in <a href="/post/65421">Style for Saved Search files?</a>:</p>
<blockquote>
<p dir="auto">You want a “Notepad++ Search Window - User Defined Language”</p>
</blockquote>
<p dir="auto">Thought maybe I could force a buffer to use the internal Search Result language defined in the lang.xml file by using NppExec as such:</p>
<p dir="auto"><img src="/assets/uploads/files/1619627117500-a2e48d5e-6882-4cd3-9fe5-e86dffa9d8c7-image.png" alt="a2e48d5e-6882-4cd3-9fe5-e86dffa9d8c7-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The document type (notice bottom left status bar) now reflects “Internal Search” instead of “Normal text file” (my default), but no lexing.  Perhaps I’m missing something?</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65423</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65423</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Wed, 28 Apr 2021 16:26:34 GMT</pubDate></item><item><title><![CDATA[Reply to Style for Saved Search files? on Wed, 28 Apr 2021 16:01:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jo-wagner" aria-label="Profile: Jo-Wagner">@<bdi>Jo-Wagner</bdi></a> said in <a href="/post/65417">Style for Saved Search files?</a>:</p>
<blockquote>
<p dir="auto">And then, gvcen the structure of the text (all findiings start with “Line #:” while the files usually start in another column, it should not be too difficult, to have kind of a “language” style definition to accomplish wat I want?</p>
</blockquote>
<p dir="auto">You want a “Notepad++ Search Window - User Defined Language”.  You can find them here:</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/userDefinedLanguages/tree/master/UDLs" rel="nofollow ugc">https://github.com/notepad-plus-plus/userDefinedLanguages/tree/master/UDLs</a></p>
<p dir="auto">There is not a “search” keyword in any of the names.  You could surely read the <a href="https://npp-user-manual.org/docs/user-defined-language-system/" rel="nofollow ugc">UDL documentation</a> and create your own based on the things you said (e.g., "all findiings start with “Line #:” ").</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65421</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65421</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Wed, 28 Apr 2021 16:01:51 GMT</pubDate></item><item><title><![CDATA[Reply to Style for Saved Search files? on Wed, 28 Apr 2021 15:49:00 GMT]]></title><description><![CDATA[<p dir="auto">one addition: I do NOT expect that the Phrase/Regex I used for the search will be highlighted when I open the stored file.</p>
<p dir="auto">It is sufficient, to have the fifferent fonts and backgrounds just to have a better overlook AND it would also be nice to be able to collapse/expand “sections” (files).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65418</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65418</guid><dc:creator><![CDATA[Jo Wagner]]></dc:creator><pubDate>Wed, 28 Apr 2021 15:49:00 GMT</pubDate></item><item><title><![CDATA[Reply to Style for Saved Search files? on Wed, 28 Apr 2021 15:44:59 GMT]]></title><description><![CDATA[<p dir="auto">Yes. exactly. That’s my result. BUT: If I would save taht text with a different extension, let’s say “srch”, I could connect a §Language" Scheme with it, right?</p>
<p dir="auto">And then, gvcen the structure of the text (all findiings start with “Line #:” while the files usually start in another column, it should not be too difficult, to have kind of a “language” style definition to accomplish wat I want?</p>
<p dir="auto">For example, when I apply the language “diff” to that file, it looks quite similar to what I am searching for.</p>
<p dir="auto">Maybe it would be a good idea to make something like that to be a “standard feature”? A file format representing a search? For sure I am not the only one that uses this capability to compile “worklists”?</p>
<p dir="auto">This especially applies to a serach within a whoile project … i.e. When you want to change the name of an element like a variable or a function. THen it’s interesting WHERE you need to adjust the code.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65417</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65417</guid><dc:creator><![CDATA[Jo Wagner]]></dc:creator><pubDate>Wed, 28 Apr 2021 15:44:59 GMT</pubDate></item><item><title><![CDATA[Reply to Style for Saved Search files? on Wed, 28 Apr 2021 12:04:58 GMT]]></title><description><![CDATA[<p dir="auto">So, for clarity, you are talking about the data that appears in the <em>Search results</em> area, and its colorings; example:</p>
<p dir="auto"><img src="/assets/uploads/files/1619611298640-adfca39f-4093-49aa-b23b-4423dce2db2a-image.png" alt="adfca39f-4093-49aa-b23b-4423dce2db2a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">So you like the blue-on-blue “Search” line, the greenish filename line (here the file is <code>new 1</code>), the nice red-on-yellow of the search hits, etc.</p>
<p dir="auto">Well, sad to say, these are just visual effects within Notepad++.  And with Notepad++ being a “text editor”, the only thing that is copied when you copy, is…text.</p>
<p dir="auto">That’s why if you copy and paste the data I show, you’ll get:</p>
<p dir="auto"><img src="/assets/uploads/files/1619611472074-0664acc1-087c-49b8-85ef-6aaf015cb8e2-image.png" alt="0664acc1-087c-49b8-85ef-6aaf015cb8e2-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/65405</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65405</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 28 Apr 2021 12:04:58 GMT</pubDate></item></channel></rss>