<?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[How to set Notepad++ to display all opened files as NORMAL TEXT without coloring?]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">How to set Notepad++ to display all opened files as NORMAL TEXT without coloring?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25623/how-to-set-notepad-to-display-all-opened-files-as-normal-text-without-coloring</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Sep 2026 21:11:02 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25623.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Mar 2024 07:16:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to set Notepad++ to display all opened files as NORMAL TEXT without coloring? on Sat, 30 Mar 2024 19:53:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> said in <a href="/post/93928">How to set Notepad++ to display all opened files as NORMAL TEXT without coloring?</a>:</p>
<blockquote>
<p dir="auto">Just check the Enable global</p>
</blockquote>
<p dir="auto">It may be the best suggestion yet, owing to its simplicity.<br />
Only the OP knows for sure what they want; if they don’t return to comment, we won’t know.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93929</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93929</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 30 Mar 2024 19:53:11 GMT</pubDate></item><item><title><![CDATA[Reply to How to set Notepad++ to display all opened files as NORMAL TEXT without coloring? on Sat, 30 Mar 2024 18:53:39 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/93923">How to set Notepad++ to display all opened files as NORMAL TEXT without coloring?</a>:</p>
<blockquote>
<p dir="auto">It’s a reasonable solution, although OP talked only about neutering “colors”.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/piotrmp006" aria-label="Profile: PiotrMP006">@<bdi>PiotrMP006</bdi></a>:</p>
<p dir="auto">If that’s all that’s wanted, won’t making the desired settings at:</p>
<p dir="auto"><strong>Settings</strong> | <strong>Style Configurator</strong> | <strong>Global Styles</strong> | <strong>Global override</strong></p>
<p dir="auto">do it? Just check the <strong>Enable global …</strong> boxes for everything you want to keep constant, and then set the Colour Style and Font Style as desired.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93928</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93928</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Sat, 30 Mar 2024 18:53:39 GMT</pubDate></item><item><title><![CDATA[Reply to How to set Notepad++ to display all opened files as NORMAL TEXT without coloring? on Sat, 30 Mar 2024 14:56:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> said :</p>
<blockquote>
<p dir="auto">I’m not very familiar with the scripting plugins, but I think this would be easily done using PythonScript with something like… all newly opened files would default to plain text.</p>
</blockquote>
<p dir="auto">It’s a reasonable solution, although OP talked only about neutering “colors”.  Setting a file to normal-text will also eliminate stuff like “folding” (for languages/extensions that have that) which the OP did not mention wanting to exclude – but it is probably reasonable to conclude that they don’t care about such things.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93923</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93923</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 30 Mar 2024 14:56:56 GMT</pubDate></item><item><title><![CDATA[Reply to How to set Notepad++ to display all opened files as NORMAL TEXT without coloring? on Sat, 30 Mar 2024 14:56:15 GMT]]></title><description><![CDATA[<p dir="auto">To put together <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> replies…</p>
<ul>
<li>Select <em>New script</em> from the <em>Plugins</em> &gt; <em>Python Script</em> menu</li>
<li>When prompted, type <code>startup.py</code> for the name of the script</li>
<li>Copy and Paste <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> 's script into the editor, and Save</li>
<li>Select <em>Configuration</em> from the <em>Plugins</em> &gt; <em>Python Script</em> menu, and change the box with <code>LAZY</code> in it to <code>ATSTARTUP</code></li>
<li>Restart Notepad++</li>
</ul>
<p dir="auto">The new user-startup file will be visible in the menu system here (but NEVER needs to be executed via the menus, it will run automatically when N++ starts up the PS plugin):</p>
<p dir="auto"><img src="/assets/uploads/files/1711798272955-d6be23b8-a053-43ff-b3ce-229eaa1d82a1-image.png" alt="d6be23b8-a053-43ff-b3ce-229eaa1d82a1-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The screenshot is meant to hammer home the point <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> was making about there potentially being some confusion about 2 startup files (with identical names in the file system – in the PS menus they are different though).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93922</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93922</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 30 Mar 2024 14:56:15 GMT</pubDate></item><item><title><![CDATA[Reply to How to set Notepad++ to display all opened files as NORMAL TEXT without coloring? on Sat, 30 Mar 2024 06:22:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> said in <a href="/post/93910">How to set Notepad++ to display all opened files as NORMAL TEXT without coloring?</a>:</p>
<blockquote>
<p dir="auto">I believe there is a simple way to put it where it will take effect every time you start Notepad++</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/piotrmp006" aria-label="Profile: PiotrMP006">@<bdi>PiotrMP006</bdi></a></p>
<p dir="auto">That would mean creating a file called <code>startup.py</code> and<br />
do <strong>NOT</strong> use the file that comes with the plugin itself. Create your own file. It will be created in a different path and, unlike the supplied file, will survive a possible plugin update.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93919</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93919</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 30 Mar 2024 06:22:09 GMT</pubDate></item><item><title><![CDATA[Reply to How to set Notepad++ to display all opened files as NORMAL TEXT without coloring? on Fri, 29 Mar 2024 17:57:00 GMT]]></title><description><![CDATA[<p dir="auto">I’m not very familiar with the scripting plugins, but I think this would be easily done using PythonScript with something like:</p>
<pre><code class="language-py">def setLanguage(args):
    notepad.setLangType(LANGTYPE.TXT, args["bufferID"])

notepad.callback(setLanguage, [NOTIFICATION.FILEOPENED])
</code></pre>
<p dir="auto">That way you could still set the language manually, but all newly opened files would default to plain text.</p>
<p dir="auto">Hopefully someone more familiar than I with Python and the scripting plugin will say whether this is the right way to do it and can guide you to the least painful way to get it set up. I believe there is a simple way to put it where it will take effect every time you start Notepad++.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93910</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93910</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Fri, 29 Mar 2024 17:57:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to set Notepad++ to display all opened files as NORMAL TEXT without coloring? on Fri, 29 Mar 2024 08:26:19 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/piotrmp006" aria-label="Profile: piotrMP006">@<bdi>piotrMP006</bdi></a>, @alan_kilborn and <strong>All</strong>,</p>
<p dir="auto"><strong>Alan</strong>, your regex <strong>does</strong> change some colors in the <strong><code>Search Result</code></strong> language. I suppose that this fact is <strong>not</strong> desired by the OP ! So, this <strong>modified</strong> regex S/R should work :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?-si:&lt;LexerStyles&gt;|(?!\A)\G)(?s-i:(?!&lt;LexerType name="searchResult").)*?\K(?-si:fgColor=".{6}" bgColor=".{6}")</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>fgColor="000000" bgColor="FFFFFF"</code></strong></p>
</li>
</ul>
<p dir="auto">This version does <strong>not</strong> take in account <strong>any</strong> line of the <strong><code>Search result</code></strong> language</p>
<p dir="auto">However note that, <strong>whatever</strong> the language, it takes lines in <strong>comments</strong> in account, as well as your version !</p>
<p dir="auto">With the <strong><code>Stylers.model</code></strong>, of the <strong>pre</strong>-release <strong><code>v8.6.5 - 64 bits</code></strong>, I got <strong><code>1,297</code></strong> replacements</p>
<hr />
<p dir="auto">After <strong>enumeration</strong>, we may notice that the lines, that need to be <strong>changed</strong>, have <strong>all</strong> a <strong><code>name</code></strong> attribut with :</p>
<ul>
<li>
<p dir="auto">An <strong>uppercase</strong> letter or a <strong><code>#</code></strong> symbol, as <strong>first</strong> character</p>
</li>
<li>
<p dir="auto">An <strong>uppercase</strong> letter, a <strong>digit</strong>, a <strong>space</strong> or a <strong>dash</strong> char, as <strong>second</strong> character</p>
</li>
</ul>
<p dir="auto">Thus, an <strong>other</strong> solution is, simply, the following S/R :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?-is)^\h+&lt;WordsStyle name="[\u#][\u\d -].+?".+\KfgColor=".{6}" bgColor=".{6}"</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>fgColor="000000" bgColor="FFFFFF"</code></strong></p>
</li>
</ul>
<hr />
<p dir="auto">This solution :</p>
<ul>
<li>
<p dir="auto">Does <strong>not</strong> consider the lines in <strong>comments</strong></p>
</li>
<li>
<p dir="auto">But it misses the line below, in the <strong><code>Postscript</code></strong> language :</p>
</li>
</ul>
<pre><code class="language-xml">            &lt;WordsStyle name="Name" styleID="5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" /&gt;
</code></pre>
<p dir="auto">Just because the attribut <strong><code>Name</code></strong> has a value where the <strong>second</strong> character is the <strong>lowercase</strong> letter <strong><code>a</code></strong> ! Luckily, the values of its <strong><code>fg</code></strong> and <strong><code>bg</code></strong> <strong>attributes</strong> are, already, the <strong>default</strong> ones <strong>desired</strong></p>
<p dir="auto">With the <strong><code>Stylers.model</code></strong>, of the <strong>pre</strong>-release <strong><code>v8.6.5 - 64 bits</code></strong>, I got <strong><code>1,292</code></strong> replacements</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93899</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93899</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 29 Mar 2024 08:26:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to set Notepad++ to display all opened files as NORMAL TEXT without coloring? on Thu, 28 Mar 2024 11:25:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/piotrmp006" aria-label="Profile: PiotrMP006">@<bdi>PiotrMP006</bdi></a></p>
<p dir="auto">Well, what I’m about to present doesn’t open non-“normal text” files as “normal text”, but it will show a technique for removing “coloring” (aka lexing) from all file/language types.  Also, it assumes you are using non-Dark mode and want black lettering on a white background (i.e., fully assumes you are using the default theme).</p>
<ul>
<li>Make a copy of your <code>stylers.xml</code>, perhaps call it <code>stylers-01.xml</code></li>
<li>Open <code>stylers-01.xml</code> in Notepad++</li>
<li>Do a <em>Replace All</em> operation with this setup: <em>Find what</em>: <code>(?-si:&lt;LexerStyles&gt;|(?!\A)\G)(?s-i:(?!&lt;/LexerStyles&gt;).)*?\K(?-si:fgColor=".{6}" bgColor=".{6}")</code> / <em>Replace with</em>: <code>fgColor="000000" bgColor="FFFFFF"</code> / checkmark only: <em>Match case</em>, <em>Wrap around</em>, <em>Regular expression</em></li>
<li>Save</li>
<li>Exit Notepad++</li>
<li>Rename your <code>stylers.xml</code>, perhaps call it <code>stylers-02.xml</code></li>
<li>Rename <code>stylers-01.xml</code> to <code>stylers.xml</code></li>
<li>Start Notepad++</li>
</ul>
<p dir="auto">Note: if something gets screwed up, you still have your original file in <code>stylers-02.xml</code>.</p>
<p dir="auto">Probably there are easier ways to achieve the goal, but I thought this way was kind of a “fun” way.  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93871</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93871</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 28 Mar 2024 11:25:13 GMT</pubDate></item></channel></rss>