<?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[&#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F;]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I very much like NP++ ability to show a different background for code in different languages.</p>
<p dir="auto">Currently I have a project loaded in ver. 7.7 and I have managed to  make it show the background I want for PHP and another background for Javascript. JS embedded is OK, but JS files are shown with the selected background only behind the lines with code. Empty lines and final spaces of lines are shown white. I don’t like it at all.</p>
<p dir="auto">Can anybody help me with that, please. Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19366/javascript-files-don-t-show-even-background-in-ver-7-7</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 14:02:39 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19366.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 May 2020 20:46:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F; on Sun, 10 May 2020 15:44:25 GMT]]></title><description><![CDATA[<p dir="auto">@Ricardo-E-Trelles-0 ,</p>
<p dir="auto">If you don’t like the background, change the default background.  I’ve pointed you to the setting multiple times.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53704</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53704</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 10 May 2020 15:44:25 GMT</pubDate></item><item><title><![CDATA[Reply to &#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F; on Sun, 10 May 2020 14:14:53 GMT]]></title><description><![CDATA[<p dir="auto">OK. So you prefer the look of JS (left) to PHP (right) in my first picture. I only hope they don’t make my PHP code look like the JS there. If so, I would have to revert to version 5.1, where JS files, no being embedded, have a clean uniform background and look the same to the embedded one.</p>
<p dir="auto">Thank you. You made me know that problem (for my taste) isn’t a mistake, it’s a “feature”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53701</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53701</guid><dc:creator><![CDATA[Ricardo E. Trelles 0]]></dc:creator><pubDate>Sun, 10 May 2020 14:14:53 GMT</pubDate></item><item><title><![CDATA[Reply to &#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F; on Sat, 09 May 2020 20:42:02 GMT]]></title><description><![CDATA[<p dir="auto">@Ricardo-E-Trelles-0 said in <a href="/post/53686">// Javascript files don't show even background in ver. 7.7 //</a>:</p>
<blockquote>
<p dir="auto">Sorry, in a Javascript file (not embedded, of course) one should see also blank lines and ends of lines with the same background that around characters.</p>
</blockquote>
<p dir="auto">Sorry, I already said, “except empty space and unused characters, because that background is set by the <strong>theme</strong>’s <code>GlobalStyle &gt; DEFAULT</code> style.”.  The main background for a theme (whitespace and empty space) is set by the <strong>theme’s</strong> <code>GlobalStyle &gt; DEFAULT</code>, <em>not</em> by any language-specific settings.  So you cannot do what you have asked.</p>
<p dir="auto">The source code in the “embedded-javascript lexer” (I assume it’s actually source code in each of the individual lexers like HTML and PHP which can handle embedded-javascript; as far as I know, there isn’t a standalone parser for “embedded javascript”) makes a special, unusual, non-standard exception which overrides the background even on blank/empty, for just the portions of the main file that are in embedded-javascript-mode; this is <em>not</em> something that the standalone javascript lexer does.</p>
<p dir="auto">The whole point of the <code>GlobalStyle &gt; DEFAULT</code> style is that <strong>it</strong> is the style that sets the background color for empty space, not any language-specific setting.  That is core to the design of the syntax highlighter in Notepad++.</p>
<blockquote>
<p dir="auto">PHP files are shown with all background filled uniform (right of that same first picture).</p>
</blockquote>
<p dir="auto">Oh, I see your confusion now.  It’s because they aren’t shown with “all background filled uniform”.  You just think they do because all of your PHP syntax occurs within the <code>&lt;?php</code> … <code>?&gt;</code> pseudo-tag.  Anything outside that tag does <em>not</em> get that background color, even though it’s not part of the same file.</p>
<p dir="auto"><img src="/assets/uploads/files/1589056565855-aaa1daaf-85a8-4580-9aec-45f0dfcb0421-image.png" alt="aaa1daaf-85a8-4580-9aec-45f0dfcb0421-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">JavaScript doesn’t have the same sort of all-wrapping tag around the source code that PHP has, so it doesn’t violate Notepad++'s intent of <code>GlobalStyle &gt; DEFAULT</code> setting the background color for the whole document, and every other per-language style only making minor exceptions to that default.   Personally, I would vote for PHP’s syntax highlighter to <em>not</em> violate that principle, and instead I think that PHP <em>shouldn’t</em> take over empty-space backgrounds.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53688</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53688</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 09 May 2020 20:42:02 GMT</pubDate></item><item><title><![CDATA[Reply to &#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F; on Sat, 09 May 2020 19:18:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/53679">// Javascript files don't show even background in ver. 7.7 //</a>:</p>
<blockquote>
<p dir="auto">The javascript (embedded) was coded uniquely, to allow the JavaScript(embedded)&gt;DEFAULT style to affect the background of the whole region including spaces and unused.  The standalone javascript was not coded that way…</p>
</blockquote>
<p dir="auto">Sorry, in a Javascript file (not embedded, of course) one should see also blank lines and ends of lines with the same background that around characters. Do you see the effect in the left of my first picture? (I have set the same color for JavaScript &gt; DEFAULT and everything there).</p>
<p dir="auto">PHP files are shown with all background filled uniform (right of that same first picture). Why JS files would be different?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53686</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53686</guid><dc:creator><![CDATA[Ricardo E. Trelles 0]]></dc:creator><pubDate>Sat, 09 May 2020 19:18:44 GMT</pubDate></item><item><title><![CDATA[Reply to &#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F; on Sat, 09 May 2020 17:19:38 GMT]]></title><description><![CDATA[<p dir="auto">For javascript embedded, when there is a script inside an HTML or (per your experiment) PHP:</p>
<p dir="auto">By default, they manually set every background to RGB=(242,244,255)<br />
<img src="/assets/uploads/files/1589044258523-3eda117a-b8a3-4fc6-847b-8e31ad10889f-image.png" alt="3eda117a-b8a3-4fc6-847b-8e31ad10889f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">If I change <em>one</em> of them to orange, it works as expected.:<br />
<img src="/assets/uploads/files/1589044200482-ab9c1a62-85ec-400e-ae99-e6010ff9b4f3-image.png" alt="ab9c1a62-85ec-400e-ae99-e6010ff9b4f3-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I would have to change <em>all</em> the backgrounds inside javascript (embedded) to completely change the background</p>
<p dir="auto">For pure javascript files (*.js), all the backgrounds are set to white; if you change just <code>JavaScript &gt; DEFAULT</code> to yellow, only some will be backgrounded as yellow; if you change <em>all</em> the javascript styles to yellow (like shown below), then all of the <code>.js</code> characters will have a background of yellow, except empty space and unused characters, because that background is set by the <strong>theme</strong>’s <code>GlobalStyle &gt; DEFAULT</code> style.<br />
<img src="/assets/uploads/files/1589044516022-a5311e95-78c6-4da1-a4a6-ab68758162d8-image.png" alt="a5311e95-78c6-4da1-a4a6-ab68758162d8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The javascript (embedded) was coded uniquely, to allow the JavaScript(embedded)&gt;DEFAULT style to affect the background of the whole region including spaces and unused.  The standalone javascript was not coded that way, because you do not need to highlight the difference between the <code>&lt;script&gt;</code> section and the non-<code>&lt;script&gt;</code> section in a file that’s completely javascript.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53679</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53679</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 09 May 2020 17:19:38 GMT</pubDate></item><item><title><![CDATA[Reply to &#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F; on Sat, 09 May 2020 10:02:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> No, my only concern is with the background color in Javascript. It doesn’t fill all the background when a JS file is shown (left in my first picture). To the right you see a PHP file, background fills everything between “&lt;?php&gt;” and “?&gt;”.</p>
<p dir="auto">However, in embedded JS  background fills everything between “&lt;script&gt;” and “&lt;/script&gt;”.</p>
<p dir="auto">In the past, with NP++ v5.1, we had Style Configurator &gt; JavaScript to select colors, then we started to have Style Configurator &gt; JavaScript (embedded) too. See new picture,  with NP++ v5.1  background color fills everything in all JS code.</p>
<p dir="auto">Now you see what is happening?</p>
<p dir="auto"><a href="/assets/uploads/files/1589018457888-js-php-backcolor-2.jpg">JS-PHP-backcolor-2.jpg</a> ing in the newer versions?</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53668</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53668</guid><dc:creator><![CDATA[Ricardo E. Trelles 0]]></dc:creator><pubDate>Sat, 09 May 2020 10:02:24 GMT</pubDate></item><item><title><![CDATA[Reply to &#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F; on Fri, 08 May 2020 22:20:06 GMT]]></title><description><![CDATA[<p dir="auto">@Ricardo-E-Trelles-0</p>
<p dir="auto">So do I understand correctly if I say you want to have a different theme<br />
based on the programming language used?<br />
Like for example this</p>
<p dir="auto">Python:<br />
<img src="/assets/uploads/files/1588976335914-3df62f5e-da4c-41b1-a6f6-5f4b7919475b-image.png" alt="3df62f5e-da4c-41b1-a6f6-5f4b7919475b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">JavaScript:<br />
<img src="/assets/uploads/files/1588976372509-146c881f-28de-4c65-89ae-2501330b68cf-image.png" alt="146c881f-28de-4c65-89ae-2501330b68cf-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/53665</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53665</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 08 May 2020 22:20:06 GMT</pubDate></item><item><title><![CDATA[Reply to &#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F; on Fri, 08 May 2020 21:57:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Thank you very for your attention!</p>
<p dir="auto">Yes, my second post could be interpreted as that I had solved the problem, but I hasn’t.</p>
<p dir="auto">Again, the problem is that when I set the background color in JavaScript, the same for embedded and regular file, embedded code looks well but regular files  show the background color only close to the characters, blank lines and empty ends are shown white. That’s annoying .</p>
<p dir="auto">Funny thing is that for PHP both embedded code and regular files look fine, with their  background color filling everything.</p>
<p dir="auto">Now I found an installation of NP++ ver 5.1 where that problem doesn’t show. In ver. 5.1 System Configurator &gt; Language &gt; Javascript doesn’t have also “Javascript (embedded)”. I’m thinking that problem started with new versions, offerening both options.</p>
<p dir="auto">I hope you understand the description of the problem above or can see the difference JS/PHP in the capture included.<img src="/assets/uploads/files/1588974837049-js-php-backcolor.jpg" alt="JS-PHP-backcolor.jpg" class=" img-fluid img-markdown" /> I emphasized the blue in JS to make it more noticeable in this sample.</p>
<p dir="auto">What do you think?</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53664</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53664</guid><dc:creator><![CDATA[Ricardo E. Trelles 0]]></dc:creator><pubDate>Fri, 08 May 2020 21:57:01 GMT</pubDate></item><item><title><![CDATA[Reply to &#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F; on Fri, 08 May 2020 11:27:19 GMT]]></title><description><![CDATA[<p dir="auto">@Ricardo-E-Trelles-0</p>
<p dir="auto">Your second post made me believe you’ve solved your problem but this doesn’t seem to be the case. I’m still confused about what works and what not,<br />
so I would suggest you post a picture about to explain it.<br />
Posting a picture is as easy as with normal copy and paste operations. And post your debug info from the ? menu, the last menu item.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53628</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53628</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 08 May 2020 11:27:19 GMT</pubDate></item><item><title><![CDATA[Reply to &#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F; on Fri, 08 May 2020 10:12:44 GMT]]></title><description><![CDATA[<p dir="auto">@Ricardo-E-Trelles-0 Switched to ver. 7.8.6<br />
Same problem with JavaScript files.<br />
Please help!!!<br />
Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53623</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53623</guid><dc:creator><![CDATA[Ricardo E. Trelles 0]]></dc:creator><pubDate>Fri, 08 May 2020 10:12:44 GMT</pubDate></item><item><title><![CDATA[Reply to &#x2F;&#x2F; Javascript files don&#x27;t show even background in ver. 7.7 &#x2F;&#x2F; on Wed, 06 May 2020 21:06:01 GMT]]></title><description><![CDATA[<p dir="auto">@Ricardo-E-Trelles-0</p>
<p dir="auto">In Style Configurator &gt; JavaScript &gt; DEFAULT I have the background I want.<br />
Same for JavaScript (embedded) &gt; DEFAULT</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53561</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53561</guid><dc:creator><![CDATA[Ricardo E. Trelles 0]]></dc:creator><pubDate>Wed, 06 May 2020 21:06:01 GMT</pubDate></item></channel></rss>