<?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[Theme, Monokai, change color of highlighted line]]></title><description><![CDATA[<p dir="auto">Good morning.<br />
I have some trouble with themes in notepad++<br />
I use Monokai dark at the moment, so far colors are ok.<br />
What I need is a better highlighed line I am working in, its black on dark that has nothing to do with highlight.<br />
Same problem with most other themes.<br />
If I try to change it via Style congiruator  the line will be solid in the color I choode doesnt matter for fore or background.</p>
<p dir="auto"><img src="/assets/uploads/files/1790238545562-style.png" alt="style.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Also background is devided in left and right.<br />
<img src="/assets/uploads/files/1790238658952-back.png" alt="back.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">changing background<br />
<img src="/assets/uploads/files/1790238700961-back1.png" alt="back1.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Absolute strange.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27667/theme-monokai-change-color-of-highlighted-line</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 19:22:18 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27667.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Sep 2026 08:31:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Theme, Monokai, change color of highlighted line on Thu, 24 Sep 2026 16:05:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chotafallen" aria-label="Profile: ChotaFallen">@<bdi>ChotaFallen</bdi></a> ,</p>
<p dir="auto">Under default Monokai, I cannot replicate:</p>
<p dir="auto"><img src="/assets/uploads/files/1790262087450-9491595a-6d67-4abf-8758-f5ed5da6beb3-image.jpeg" alt="9491595a-6d67-4abf-8758-f5ed5da6beb3-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">However, if I change the Default Style &gt; Background for Monokai (to a green similar to your second screenshot), I can see it:</p>
<p dir="auto"><img src="/assets/uploads/files/1790262414327-b8f97a3a-d5b4-43cd-b0f3-a1c35e66c366-image.jpeg" alt="b8f97a3a-d5b4-43cd-b0f3-a1c35e66c366-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">It’s because Monokai (and most themes) hardcodes every background color for every style, rather than using “inherit”.  Here’s an example using the default style:</p>
<p dir="auto"><img src="/assets/uploads/files/1790262562644-9ba07e02-fb1d-4d2f-a580-d6cb2d7d5924-image.jpeg" alt="9ba07e02-fb1d-4d2f-a580-d6cb2d7d5924-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">The theme color choices aren’t always perfect, and not everyone is going to agree with color choices made.  As such, you can customize to what you want.</p>
<p dir="auto">If you want most of the backgrounds for your theme to inherit from the “default background” rather than being hardcoded, you can go through and right click the background color for any that are the default.  (Or, as a footnote, I will also explain a process that you can edit the XML for your customized Monokai, to automatically change anything that has a background that matches the monokai default background to inherit from default background, so that you can do it in a lot less time.)</p>
<blockquote>
<p dir="auto">What I need is a better highlighed line I am working in, its black on dark that has nothing to do with highlight.<br />
…<br />
If I try to change it via Style congiruator the line will be solid in the color I choode doesnt matter for fore or background.</p>
</blockquote>
<p dir="auto">Which “highlight” do you mean?  And I am not sure what you aren’t liking about it when you change it.</p>
<ul>
<li>Current line highlight:
<ul>
<li>default Monokai: <img src="/assets/uploads/files/1790262875579-db922444-92f4-4df3-91f4-9865727004fd-image.jpeg" alt="db922444-92f4-4df3-91f4-9865727004fd-image.jpeg" class=" img-fluid img-markdown" /></li>
<li>set it to something else: <img src="/assets/uploads/files/1790262905945-fca66fe1-82d2-47cd-92cb-8c1ca0e6bc54-image.jpeg" alt="fca66fe1-82d2-47cd-92cb-8c1ca0e6bc54-image.jpeg" class=" img-fluid img-markdown" /></li>
<li>it does exactly what I expect: it changes the current line background color 0x3E3D32 to something based on the color I selected.</li>
</ul>
</li>
<li>Selected text colour:
<ul>
<li>default: <img src="/assets/uploads/files/1790263082002-6cf5b4c1-7b2e-47bc-8b20-47ad2ea1884a-image.jpeg" alt="6cf5b4c1-7b2e-47bc-8b20-47ad2ea1884a-image.jpeg" class=" img-fluid img-markdown" /></li>
<li>modified: <img src="/assets/uploads/files/1790263104839-6318a4e3-6d6a-4583-b949-855a439f304c-image.jpeg" alt="6318a4e3-6d6a-4583-b949-855a439f304c-image.jpeg" class=" img-fluid img-markdown" /></li>
<li>again, it does what I expect</li>
</ul>
</li>
<li>Smart Highlighting:
<ul>
<li>default: <img src="/assets/uploads/files/1790263153651-1107e88c-b40c-4622-b0e9-d2676004c323-image.jpeg" alt="1107e88c-b40c-4622-b0e9-d2676004c323-image.jpeg" class=" img-fluid img-markdown" /></li>
<li>changed to cyan: <img src="/assets/uploads/files/1790263182686-3ba38b0a-1f92-4d9d-ba94-b36ef4d0c6f3-image.jpeg" alt="3ba38b0a-1f92-4d9d-ba94-b36ef4d0c6f3-image.jpeg" class=" img-fluid img-markdown" /></li>
<li>this one, it’s actually combing the selected color with the normal background color, so it’s not exactly the same color you chose; but again, that’s not unique to Monokai</li>
</ul>
</li>
<li>Find Mark Style: used when you use <strong>Find &gt; Mark</strong> dialog
<ul>
<li><img src="/assets/uploads/files/1790263284015-0e9c9f44-f393-44ae-b29a-386e362939bd-image.jpeg" alt="0e9c9f44-f393-44ae-b29a-386e362939bd-image.jpeg" class=" img-fluid img-markdown" /></li>
</ul>
</li>
<li>Mark Style #: used when you use <strong>Search &gt; Style … Token</strong> options:
<ul>
<li><img src="/assets/uploads/files/1790263340517-131aa3df-93bd-4977-9bd9-3143c4a7fbcb-image.jpeg" alt="131aa3df-93bd-4977-9bd9-3143c4a7fbcb-image.jpeg" class=" img-fluid img-markdown" /></li>
</ul>
</li>
</ul>
<p dir="auto">There are a few other, less likely, choices that you might mean by highlight.  But rather than showing that I think it does what’s expected, it would be better if you were more specific about what you were doing, and what you don’t like, and what you would like.</p>
<hr />
<p dir="auto"><strong>Footnote: Make Monokai backgrounds inherit quickly</strong></p>
<p dir="auto">I assume you have a copy of <code>Monokai.xml</code> in <code>%AppData%\Notepad++\themes\</code> .</p>
<ol>
<li>Exit all copies of Notepad++</li>
<li>Copy <code>Monokai.xml</code> to <code>Monokai_custom.xml</code></li>
<li>Edit <code>Monokai_custom.xml</code> with Notepad++</li>
<li>Confirm that <code>&lt;WidgetStyle name="Default Style"</code> has <code>bgColor="272822"</code> – if not, manually edit it to use that</li>
<li><strong>Search &gt; Replace</strong>, set Search Mode = <code>Regular Expression</code>
<ol>
<li>FIND = <code>(?-s)bgColor="272822".*\KcolorStyle="(?:(2)|(3))"</code><br />
REPLACE = <code>colorStyle="(?{1}0)(?{2}1)"</code><br />
REPLACE ALL</li>
<li>FIND = <code>(?-s)(bgColor="272822"(?:(?!colorStyle).))*\h*/&gt;</code><br />
REPLACE = <code>colorStyle="${1} colorStyle="1" /&gt;</code><br />
REPLACE ALL</li>
<li>On the “Default Style” line again, delete <code>colorStyle="1"</code></li>
<li>Save the file</li>
</ol>
</li>
<li>Exit Notepad++ and re-launch it</li>
<li><strong>Settings &gt; Style Configurator &gt; Select Theme</strong> = <code>Monokai_custom</code></li>
</ol>
<p dir="auto">Now if you change Monokai_custom’s default background color, it should propagate to all the other styles (both normal text and each language), so it really changes the background throughout.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/106390</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106390</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 24 Sep 2026 16:05:04 GMT</pubDate></item></channel></rss>