<?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 &quot;Find&quot; Background colour?]]></title><description><![CDATA[<p dir="auto">In some themes (for example in my case “Plastic Code Wrap”), when I use “Find” to find some word, the found word is nearly impossible to spot. The default background of the theme is black, and the background of the found expression is very dark grey, nearly black, and since the foreground is not changed, I don’t see what has been found.</p>
<p dir="auto">I looked at the Global Styles in Styles Manager, and from the names, I had thought tthat  “Find Mark Style” should be the correct one, but this is not the case, because it is set to “Red on Yellow” and certainly not used when finding the occurance of a word. For the same reason, “Smart Highlighting” can’t be the correct style, because this is also set to a colourful background. Actually, not a single one of my global styles is set to “nearly black” or “black”, so I wonder where Notepad++ gets this information from.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18157/how-to-set-find-background-colour</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 03:41:41 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18157.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Aug 2019 12:25:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Tue, 27 Dec 2022 07:42:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/angga-setia-budi" aria-label="Profile: Angga-Setia-Budi">@<bdi>Angga-Setia-Budi</bdi></a> ,</p>
<p dir="auto">Mind you, your question doesn’t really apply to this thread’s discussion, however to move you along, here’s the steps needed. Go to the menu bar <code>Preferences-&gt;Style Configurator-&gt;Language: Global Styles</code>  and then <code>Style: Default Style</code>. You’ll then see the two color selectable boxes to the right in the <code>Colour Style</code> Section of the Dialog box. You can set the colors there for whatever you want for the non-focusing line colors, and then go down to <code>Style: Current line background</code> and again, look to the right to see the color selection boxes to choose the colors from there. Now mind you, if it’s a predefined language you’re using, that will change the colors for all the language.<br />
See Below:<br />
<img src="/assets/uploads/files/1672126784112-styleconfiguratorselection.png" alt="StyleConfiguratorSelection.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/82779</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82779</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Tue, 27 Dec 2022 07:42:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Tue, 27 Dec 2022 06:03:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I have a trouble with n++, how can i set the background color for non-focusing line/editing line. in my n++ it should be orange and i need to change it to white<br />
<img src="/assets/uploads/files/1672120941396-2022-12-27_12-59-16.gif" alt="2022-12-27_12-59-16.gif" class=" img-fluid img-markdown" /><br />
Thanks to all members</p>
]]></description><link>https://community.notepad-plus-plus.org/post/82776</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/82776</guid><dc:creator><![CDATA[Angga Setia Budi]]></dc:creator><pubDate>Tue, 27 Dec 2022 06:03:25 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Mon, 21 Oct 2019 08:23:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a></p>
<p dir="auto">Nice to see you are back! And thank you for all the valuable and thoroughly crafted content you are publishing in this forum.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47954</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47954</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Mon, 21 Oct 2019 08:23:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Fri, 18 Oct 2019 21:25:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/47895">How to set "Find" Background colour?</a>:</p>
<blockquote>
<p dir="auto">Be convinced that I’m quite pleased to be back in the Community</p>
</blockquote>
<p dir="auto">And we’re glad (or, at least, I know I am; I assume others are, too) to have you back. :-)  I had gotten worried there for a while.</p>
<p dir="auto">Regarding color: at one time, I had a bit of knowledge about RGB &lt;-&gt; HSL conversion, though most of it didn’t stick long term.</p>
<p dir="auto">At first blush, I think my formulas match the definitely-correct formulas you derive for blending A-&gt;B, with only A having transparency.  I’m glad I wasn’t completely off base. Thanks! :-)  (And yours has all the technical background, so it’s a much better resource than my handwavy derivation.)</p>
<p dir="auto">Thanks for all that work.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47901</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47901</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 18 Oct 2019 21:25:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Sun, 19 Apr 2020 10:53:06 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">So, to end with, here is <strong>composite</strong> example, that I realized with the <strong>sample</strong> <strong><code>XML</code></strong> file, below :</p>
<pre><code class="language-xml">&lt;?xml version="1.0" encoding="utf-8" ?&gt;

&lt;!--

CONVENTION : In comments, the different BACKGROUND or FOREGROUND styles are abbreviated as :

  0  WH  =  Default White Bg Background        α = 255/255 = 1.0
  1  CL  =  Current Line Bg style              α = 255/255 = 1.0
  2  CS  =  Current Selection Bg style         α = 255/255 = 1.0

  3  M5  =  Mark Style 5                       α = 100/255 ≈ 0.39222
  4  M2  =  Mark Style 2                       α = 100/255 ≈ 0.39222
  5  TA  =  Tab Attribute Bg Style             α = 100/255 ≈ 0.39222
  6  IH  =  Incremental Highlighting style     α = 100/255 ≈ 0.39222
  7  SH  =  Smart Highlighting Style           α = 100/255 ≈ 0.39222
  8  FM  =  Find Mark Style                    α = 100/255 ≈ 0.39222

  9  DS  =  DspellCheck Bg Style               α =  30/255 ≈ 0.1176

  A  TT  =  Tag Attribute Fg Style             α = 255/255 = 1.0
  B  BL  =  Default Black Fg Style             α = 255/255 = 1.0

--&gt;

&lt;Menu&gt;
    &lt;Item id="1" name="1234"/&gt;  &lt;!-- Line 1                                TA + CL  =&gt;  241,241,155,1  [     5  1 ]  --&gt;
    &lt;Item id="1" name="5678"/&gt;  &lt;!-- Line 2                      TA   +    M5 + CL  =&gt;  186,216, 94,1  [     5 31 ]  --&gt;
    &lt;Item id="2" name="ABCD"/&gt;  &lt;!-- Line 3                      TA + M2 + M5 + CL  =&gt;  213,201, 57,1  [     5431 ]  --&gt;
    &lt;Item id="3" name="test"/&gt;  &lt;!-- Line 4                 IH + TA + M2 + M5 + CL  =&gt;  130,172,135,1  [    65431 ]  --&gt;
    &lt;Item id="4" name="Test"/&gt;  &lt;!-- Line 5            SH + IH + TA + M2 + M5 + CS  =&gt;   75,202, 77,1  [   765432 ]  --&gt;
    &lt;Item id="5" name="Test"/&gt;  &lt;!-- Line 6       FM + SH + IH + TA + M2 + M5 + CS  =&gt;  146,123, 47,1  [  8765432 ]  --&gt;
    &lt;Item id="6" name="Testz"/&gt; &lt;!-- Line 7  DS + FM + SH + IH + TA + M2 + M5 + CS  =&gt;  159,108, 41,1  [ 98765432 ]  --&gt;
                                &lt;!--  TEXT   DS              +             TT + CS  =&gt;  143,  0,225,1  [ 9     A2 ]  --&gt;
&lt;/Menu&gt;
</code></pre>
<p dir="auto">Here are the different steps to get <strong>all</strong> the styles, simultaneously !</p>
<ul>
<li>
<p dir="auto">First, disable, <strong>temporarily</strong>, some N++ features and plugins :</p>
<ul>
<li>
<p dir="auto">Disable the <strong>Smart Highlighting</strong> in <strong><code>Settings &gt; Preferences... &gt; Highlighting &gt; Smart Highlighting &gt; Enable</code></strong></p>
</li>
<li>
<p dir="auto">Disable the <strong>XML Tag Highlighting</strong> in <strong><code>Settings &gt; Preferences... &gt; Highlighting &gt; Highlight Matching Tags &gt; Enable</code></strong></p>
</li>
<li>
<p dir="auto">Disable the <strong>DSpellCheck</strong> plugin in <strong><code>Plugins &gt; DSpellCheck &gt; Spell Check Document Automatically</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">Then, <strong>preset</strong> the search to <strong>match the case</strong>, for <strong>future</strong> mark styles to apply :</p>
<ul>
<li>
<p dir="auto">Open the <strong>Find</strong> dialog ( <strong><code>CTRL + F</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Untick</strong> the <strong><code>Match case</code></strong> option</p>
</li>
<li>
<p dir="auto">Hit the <strong><code>ESC</code></strong> key to close the <strong>Find</strong> dialog</p>
</li>
</ul>
</li>
<li>
<p dir="auto">Select the word <strong>5678</strong>, in line <strong><code>2</code></strong> of the XML file and choose the option <strong><code>Search &gt; Mark All &gt; Using 5nd style</code></strong></p>
</li>
<li>
<p dir="auto">Select the word <strong>ABCD</strong>, in line <strong><code>3</code></strong> and choose, <strong>both</strong>, the options <strong><code>Search &gt; Mark All &gt; Using 5nd style</code></strong> and <strong><code>Search &gt; Mark All &gt; Using 2nd style</code></strong></p>
</li>
<li>
<p dir="auto">Select the word <strong>test</strong>, in line <strong><code>4</code></strong> and choose, <strong>both</strong>, the options <strong><code>Search &gt; Mark All &gt; Using 5nd style</code></strong> and <strong><code>Search &gt; Mark All &gt; Using 2nd style</code></strong></p>
</li>
<li>
<p dir="auto">Select, again, the word <strong>test</strong>, in line <strong><code>4</code></strong> and choose the option <strong><code>Search &gt; Incremental Search</code></strong>. Then, <strong>untick</strong> the <strong><code>Match case</code></strong> option and <strong>tick</strong> the <strong><code>Highlight All</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the word <strong>Test</strong>, in line <strong><code>6</code></strong>  and choose the option <strong><code>Search &gt; Mark...</code></strong>. Then, <strong>untick all</strong> the options, except for the <strong><code>Normal</code></strong> search mode and click on the <strong><code>Mark</code></strong> button</p>
</li>
<li>
<p dir="auto">Put the caret on an <strong>empty</strong> line</p>
</li>
<li>
<p dir="auto">Re-enable the N++ features and plugins <strong>temporarily</strong> disabled :</p>
<ul>
<li>
<p dir="auto">The <strong>Smart Highlighting</strong>, in <strong><code>Settings &gt; Preferences... &gt; Highlighting &gt; Smart Highlighting &gt; Enable</code></strong> and also tick the <strong><code>Match case</code></strong> option, located under ( Important )</p>
</li>
<li>
<p dir="auto">The <strong>XML Tag Highlighting</strong>, in <strong><code>Settings &gt; Preferences... &gt; Highlighting &gt; Highlight Matching Tags &gt; Enable</code></strong> and also tick the <strong><code>Highlight tab attributes</code></strong> option, located under ( Important )</p>
</li>
<li>
<p dir="auto">The <strong>DSpellCheck</strong> plugin, in <strong><code>Plugins &gt; DSpellCheck &gt; Spell Check Document Automatically</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">To know the <strong>result</strong> color of the <strong>mixing</strong> styles created :</p>
<ul>
<li>
<p dir="auto">Be sure that <strong>all</strong> your other <strong>opened</strong> programs, on your machine, are in the <strong>background</strong></p>
</li>
<li>
<p dir="auto"><strong>Simple</strong>-click on the value of the <strong><code>name</code></strong> attribute, for line <strong><code>1</code></strong>, line <strong><code>2</code></strong>, line <strong><code>3</code></strong> or line <strong><code>4</code></strong></p>
</li>
<li>
<p dir="auto">or <strong>Double</strong>-click on the value of <strong><code>name</code></strong> attribute, for line <strong><code>5</code></strong>, line <strong><code>6</code></strong> or line <strong><code>7</code></strong></p>
</li>
<li>
<p dir="auto">Choose, for <strong>each</strong> line reached, the option <strong><code>Plugins &gt; Quick Color Picker + &gt; + Pick Color from Screen</code></strong> and aim the concerned <strong>background</strong>, in the middle of the <strong>double-quotes</strong> zone !</p>
</li>
</ul>
</li>
</ul>
<p dir="auto">I indicated, in comments, the <strong>expected</strong> resulting colors and ( except for a <strong>rounding</strong> error, of <strong>one</strong> unit, on the <strong>Red</strong> value, for line <strong><code>4</code></strong> ), all results, obtained by the <strong>successive</strong> runs of the <strong>generic</strong> calculus, below, for <strong>each</strong> style, on the three <strong><code>RGB</code></strong> colors, are <strong>all</strong> correct ;-))</p>
<p dir="auto"><strong><code>Resulting</code></strong> color = <strong><code>Current</code></strong> color + <strong><code>alpha</code></strong> x ( <strong><code>New</code></strong> color - <strong><code>Current</code></strong> color )</p>
<hr />
<p dir="auto">That post concludes my study on <strong>color</strong> and some of the <strong>interactions</strong> with Notepad+++. I just hope it will prove <strong>useful</strong> for some of you ;-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">Remark that <strong>name</strong> of colors, in color lists and color programs, are rather <strong>approximative</strong> ! For instance, the <strong>name</strong> of the color <strong><code>RBG(159, 108, 41)</code></strong> / <strong><code>#9F6C29</code></strong>, result of the <strong><code>7</code></strong> styles used, <strong>simultaneously</strong>, in line <strong><code>7</code></strong> of the above <strong><code>XML</code></strong> file, can be, either, <strong>Paarl</strong> , <strong>Hot Toddy</strong> , <strong>Buttered Rum</strong>, <strong>Brick</strong>, <strong>Mai Tai</strong>, … ;-))</p>
<p dir="auto">However, the <strong><code>HTML</code></strong> list of colors ( <strong><code>139</code></strong> colors ) is supported by <strong>all</strong> browsers and their names are <strong>standardized</strong>. Refer to :</p>
<p dir="auto"><a href="https://www.w3schools.com/colors/colors_names.asp" rel="nofollow ugc">https://www.w3schools.com/colors/colors_names.asp</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/47899</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47899</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 19 Apr 2020 10:53:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Sun, 19 Apr 2020 15:38:56 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">To help us,seriously, to study <strong>color</strong>, in Notepad++, the best is to download the <strong><code>Quick Color Picker +</code></strong> plugin from below :</p>
<p dir="auto"><a href="https://github.com/JetNpp/NppQcp/tree/master/bin" rel="nofollow ugc">https://github.com/JetNpp/NppQcp/tree/master/bin</a></p>
<ul>
<li>
<p dir="auto"><strong>Double</strong>-click on the <strong><code>NppQCP.dll</code></strong> or <strong><code>NppQCP(x64).dll</code></strong> library</p>
</li>
<li>
<p dir="auto">Click on the <strong>Download</strong> button, on the <strong>right</strong> of screen</p>
</li>
</ul>
<p dir="auto">And here is a <strong>picture</strong> of the main <strong>instructions</strong> how to use the <strong><code>NppQCP</code></strong> plugin  :</p>
<p dir="auto"><a href="https://camo.githubusercontent.com/f9d9fd0ae5eb97944176b2ba62720107b8646d82/68747470733a2f2f73332d61702d736f757468656173742d312e616d617a6f6e6177732e636f6d2f6e70707163702f66656174757265732d322e302e706e67" rel="nofollow ugc">https://camo.githubusercontent.com/f9d9fd0ae5eb97944176b2ba62720107b8646d82/68747470733a2f2f73332d61702d736f757468656173742d312e616d617a6f6e6177732e636f6d2f6e70707163702f66656174757265732d322e302e706e67</a></p>
<p dir="auto">For instance, <strong>whatever</strong> the N++ <strong>language</strong> used, if your text contains one of these <strong><code>3</code></strong> syntaxes :  <strong><code>#b66F37</code></strong> , <strong><code>rgb(120,40,80)</code></strong> or <strong><code>hsl(150,72%,69%)</code></strong>, any <strong>double</strong>-click on the <strong><code>HEX</code></strong> color value or on the labels <strong><code>rgb</code></strong> or <strong><code>hsl</code></strong>, in <strong>lower</strong> case, will immediately open the <strong>Color Palette</strong></p>
<p dir="auto">In the <strong>tuning swatch</strong>, the <strong><code>4</code></strong> columns refer, respectively, from left to right, to values <strong><code>H(ue)</code></strong>, <strong><code>S(aturation)</code></strong>, <strong><code>L(ightness)</code></strong> and <strong><code>A(lpha)</code></strong>, which are :</p>
<ul>
<li>
<p dir="auto"><strong>Greater</strong> than <strong>current tuned</strong> color values ( in the <strong>middle</strong> ), for colors in the  <strong>top</strong> part of the tuning swatch</p>
</li>
<li>
<p dir="auto"><strong>Lower</strong> than <strong>current tuned</strong> color values ( in the <strong>middle</strong> ), for colors in the <strong>bottom</strong> part of the tuning swatch.</p>
</li>
</ul>
<p dir="auto">As soon as you click on the <strong>bottom left</strong> button or choose the option <strong><code>Plugins &gt; Quick Color Picker + &gt; Pick Color from Screen</code></strong>, the Notepad++ window is <strong>hidden</strong> for <strong>easy</strong> color picking from <strong>other</strong> software. And if you want to pick up some color values of an element of <strong>Notepad++</strong> itself, just put <strong>all</strong> your other <strong>opened</strong> windows in the <strong>background</strong> !</p>
<p dir="auto"><strong>Important</strong> remark : In the small <strong>Color Picker</strong> screen, the <strong><code>HTML</code> hexadecimal</strong> values shown are <strong>erroneous</strong> : Indeed, the plugin shows the <strong>#BBGGRR</strong> values instead of the <strong>correct</strong> <strong><code>#RRGGBB</code></strong> common values which match the <strong><code>RGB</code></strong> values, just under !</p>
<p dir="auto">Luckily, in the <strong>color palette</strong> panel, the <strong><code>HTML</code></strong> code is <strong>correctly</strong> displayed :-))</p>
<hr />
<p dir="auto">Now we have to understand how <strong>two</strong> colors, having each an <strong>opacity</strong> factor, can be <strong>blended</strong> and how we can calculate the <strong>resulting</strong> output color produced !</p>
<p dir="auto">From the <strong>end</strong> of the section, below, right after the <strong>picture</strong> of some compositing image operations, with two colors <strong><code>A</code></strong> and <strong><code>B</code></strong> :</p>
<p dir="auto"><a href="https://en.wikipedia.org/wiki/Alpha_compositing#Description" rel="nofollow ugc">https://en.wikipedia.org/wiki/Alpha_compositing#Description</a></p>
<p dir="auto">And also, from the <strong>end</strong> of this post :</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/726549/algorithm-for-additive-color-mixing-for-rgb-values" rel="nofollow ugc">https://stackoverflow.com/questions/726549/algorithm-for-additive-color-mixing-for-rgb-values</a></p>
<p dir="auto">We can read that the <strong>over</strong> operator is  a normal <strong>painting</strong> operation of <strong>alpha compositing</strong>, equivalent of the <strong>blending</strong> process of <strong>two</strong> colors <strong><code>A</code></strong> and <strong><code>B</code></strong>, both, with an <strong>opacity</strong> factor, which produces a <strong>resulting</strong> color <strong><code>R</code></strong>, defined by the equations, in the <strong><code>RGB</code></strong> color space :</p>
<pre><code class="language-z">Alpha.R  =  1.0 - (1.0 - Alpha.B) * (1.0 - Alpha.A) , which can, also, be written :  Alpha R  =  Alpha.A + Alpha.B * (1 - Alpha.A)

Red.R    =  (Red.A   * Alpha.A + Red.B   * Alpha.B * (1.0 - Alpha.A)) / Alpha.R
Green.R  =  (Green.A * Alpha.A + Green.B * Alpha.B * (1.0 - Alpha.A)) / Alpha.R
Blue.R   =  (Blue.A  * Alpha.A + Blue.B  * Alpha.B * (1.0 - Alpha.A)) / Alpha.R
</code></pre>
<p dir="auto">These are the <strong>general</strong> formulas. However, it’s important to note that, in the <strong>particular</strong> case of <strong><code>Alpha.B</code></strong> = <strong><code>1</code></strong> ( color <strong><code>B</code></strong> totally <strong>opaque</strong> ), these equations can be shortened as :</p>
<pre><code class="language-z">Alpha.R = 1

Red.R    =  Red.A   * Alpha.A + Red.B   * (1.0 - Alpha.A)
Green.R  =  Green.A * Alpha.A + Green.B * (1.0 - Alpha.A)
Blue.R   =  Blue.A  * Alpha.A + Blue.B  * (1.0 - Alpha.A)
</code></pre>
<p dir="auto">which can, simply, be can be re-written as :</p>
<pre><code class="language-z">Alpha.R = 1

Red.R    =  Red.B   + Alpha.A * (Red.A   - Red.B  )
Green.R  =  Green.B + Alpha.A * (Green.A - Green.B)
Blue.R   =  Blue.B  + Alpha.A * (Blue.A  - Blue.B )
</code></pre>
<p dir="auto">It represents the <strong>alpha blending</strong> process, which is a convex combination of a <strong>translucent</strong> foreground color <strong><code>A</code></strong> with an <strong>opaque</strong> background color <strong><code>B</code></strong>, with an <strong>opacity foreground</strong> factor, named <strong><code>Alpha.A</code></strong>, in the range <strong><code>[0.0 - 1.0].</code></strong></p>
<ul>
<li>
<p dir="auto">If <strong><code>Alpha.A</code></strong> = <strong><code>0</code></strong> ( =&gt; foreground <strong><code>A</code></strong> is totally <strong>transparent</strong> ), then the <strong>resulting</strong> color <strong><code>R</code></strong> is the <strong>background</strong> color <strong><code>B</code></strong></p>
</li>
<li>
<p dir="auto">If <strong><code>Alpha.A</code></strong> = <strong><code>1</code></strong> ( =&gt; foreground <strong><code>A</code></strong> is totally <strong>opaque</strong> ), then the <strong>resulting</strong> color <strong><code>R</code></strong> is the <strong>foreground</strong> color <strong><code>A</code></strong></p>
</li>
</ul>
<p dir="auto">For further information, refer to :</p>
<p dir="auto"><a href="https://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending" rel="nofollow ugc">https://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending</a></p>
<hr />
<p dir="auto">So, here is, below, a very simple <strong>algorithm</strong> for the calculus of the <strong><code>RGB</code></strong> values of the color <strong><code>Cr</code></strong>, resulting of the mixing of a <strong>new</strong> color <strong><code>Cn</code></strong> with the <strong>current</strong> color <strong><code>Cc</code></strong> :</p>
<pre><code class="language-z">
#---------------------
# Blend of TWO colors
#---------------------


#-----------------------------------------------------------------------------------------------------------------------------
#
#    RESULTING color Cr, from the blend of TWO colors, Cn and Cc, with an OPACITY factor alpha
#
#
#      IMPORTANT : This calculus can be used, EITHER, for the BLEND of :
#
#          - the NEW color, Cn, with the current FOREGROUND color Cc ( a TEXT )
#
#          - the NEW color, Cn, with the current BACKGROUND color Cc
#
#-----------------------------------------------------------------------------------------------------------------------------
#
#    Given a CURRENT color Cc with OPACITY factor = 1 and a NEW color Cn, ADDED, with an OPACITY factor alpha,
#
#        in the [ 0 - 1 ] interval, and the RESULTING color Cr, with an OPACITY factor = 1 :
#
#
#      We apply the general formula :    Cr = alpha * Cn + ( 1 - alpha ) * Cc
#
#          which can be rewritten   :    Cr = Cc + alpha * ( Cn - Cc )
#
#
#    If foreground alpha =  1   then the RESULTING color Cr is the NEW   color Cn ( =&gt; The NEW color Cn is totally OPAQUE )
#
#    If foreground alpha = .5   then the RESULTING color Cr is the PERFECT mixing of the TWO colors Cn and Cc
#
#    If foreground alpha =  0   then the RESULTING color Cr is the CURRENT color Cc ( =&gt; The NEW color Cn is totally TRANSPARENT )
#
#-----------------------------------------------------------------------------------------------------------------------------


# --- Assumptions on opacity component alpha of the NEW color Cn -------------------------------------------------------------

    alpha in interval [ 0 - 255 ]

# --- Normalization to interval [ 0 - 1 ] ------------------------------------------------------------------------------------

    alpha = alpha / 255

# --- Assumptions on Red, Green and Blue components of the CURRENT color Cc --------------------------------------------------

    Rc in interval [ 0 - 255 ]    Gc in interval [ 0 - 255 ]    Bc in interval [ 0 - 255 ]

# --- Assumptions on Red, Green and Blue components of the NEW color Cn ------------------------------------------------------

    Rn in interval [ 0 - 255 ]    Gn in interval [ 0 - 255 ]    Bn in interval [ 0 - 255 ]

# --- Calculus of Red, Green and Blue components of the RESULTING color Cr ---------------------------------------------------

    Rr = Rc + alpha * ( Rn - Rc )    Gr = Gc + alpha * ( Gn - Gc )    Br = Bc + alpha * ( Bn - Bc )

# --- Results : Red [ 0 - 255 ] , Green [ 0 - 255 ] and Blue [ 0 - 255 ] components of the RESULTING color -------------------

    PRINT Rr ; Gr ; Br

# ----------------------------------------------------------------------------------------------------------------------------
</code></pre>
<hr />
<p dir="auto">At last, if we apply the above <strong>equations</strong> to Notepad++, we can explain most of the <strong>resulting</strong> colors, due to the different user, N++ or plugins <strong>highlightings</strong> ;-))</p>
<p dir="auto">From tests, I noticed that <strong>all</strong> N++ background <strong>highlighting</strong> seem to use the value <strong>alpha</strong> = <strong><code>100/255</code></strong> ≈ <strong><code>0,3922</code></strong></p>
<p dir="auto">You’ll find some examples, below. Note that :</p>
<ul>
<li>
<p dir="auto"><strong>All</strong> the colors are described with the <strong><code>RGBA</code></strong> color space : <strong><code>(Red, Green, Blue, Alpha)</code></strong></p>
</li>
<li>
<p dir="auto">I assume the <strong>default</strong> N++ theme is used ( <strong><code>stylers.xml</code></strong> ). This implies that current <strong>text</strong> color is <strong>Black</strong> <strong><code>(0,0,0,1)</code></strong> and current <strong>background</strong> color is <strong>White</strong> <strong><code>(255,255,255,1)</code></strong></p>
</li>
<li>
<p dir="auto">I also assume that the option <strong><code>Settings &gt; Preferences... &gt; Editing &gt; Enable smooth font</code></strong> is <strong>unticked</strong></p>
</li>
<li>
<p dir="auto">The <strong>opaque</strong> current line and current selection styles are the <strong>default</strong> ones. So, <strong><code>RGBA</code></strong> value of <strong>current line</strong> Bg and <strong>current selection</strong> Bg are, respectively, <strong><code>(232,232,255,1)</code></strong> and <strong><code>(192,192,192,1)</code></strong></p>
</li>
</ul>
<pre><code class="language-z">0,255,0,0.392   ( Smart Highlighting )         +  255,255,255,1 ( White Bg )              =&gt;  Resulting color = 155,255,155,1
0,255,0,0.392   ( Smart Highlighting )         +  232,232,255,1 ( Current line Bg )       =&gt;  Resulting color = 141,241,155,1
0,255,0,0.392   ( Smart Highlighting )         +  192,192,192,1 ( Current Selection Bg )  =&gt;  Resulting color = 117,217,117,1

255,0,0,0.392   ( Find Mark Style )            +  255,255,255,1 ( White Bg )              =&gt;  Resulting color = 255,155,155,1
255,0,0,0.392   ( Find Mark Style )            +  232,232,255,1 ( Current line Bg )       =&gt;  Resulting color = 241,141,155,1
255,0,0,0.392   ( Find Mark Style )            +  192,192,192,1 ( Current Selection Bg )  =&gt;  Resulting color = 217,117,117,1

255,128,0,0.392 ( Mark Style 2 )               +  255,255,255,1 ( White Bg )              =&gt;  Resulting color = 255,205,155,1
255,128,0,0.392 ( Mark Style 2 )               +  232,232,255,1 ( Current line Bg )       =&gt;  Resulting color = 241,191,155,1
255,128,0,0.392 ( Mark Style 2 )               +  192,192,192,1 ( Current Selection Bg )  =&gt;  Resulting color = 217,167,117,1


128,0,255,0.392 ( Mark Style 4 )               +  255,255,255,1 ( White Bg )              =&gt;  Resulting color = 205,155,255,1
128,0,255,0.392 ( Mark Style 4 )               +  232,232,255,1 ( Current line Bg )       =&gt;  Resulting color = 191,141,255,1
128,0,255,0.392 ( Mark Style 4 )               +  192,192,192,1 ( Current Selection Bg )  =&gt;  Resulting color = 167,117,217,1

0,128,255,0.392 ( Incremental Highlight All )  +  255,255,255,1 ( White Bg )              =&gt;  Resulting color = 155,205,255,1
0,128,255,0.392 ( Incremental Highlight All )  +  232,232,255,1 ( Current line Bg )       =&gt;  Resulting color = 141,191,255,1
0,128,255,0.392 ( Incremental Highlight All )  +  192,192,192,1 ( Current Selection Bg )  =&gt;  Resulting color = 117,167,217,1

0,128,255,0.392 ( Tag match highlighting )     +  255,255,255,1 ( White Bg )              =&gt;  Resulting color = 205,155,255,1
0,128,255,0.392 ( Tag match highlighting )     +  232,232,255,1 ( Current line Bg )       =&gt;  Resulting color = 191,141,255,1
0,128,255,0.392 ( Tag match highlighting )     +  192,192,192,1 ( Current Selection Bg )  =&gt;  Resulting color = 167,117,217,1

255,255,0,0.392 ( Tag Attribute )              +  232,232,255,1 ( Current line Bg )       =&gt;  Resulting color = 241,241,155,1
255,255,0,0.392 ( Tag Attribute )              +  192,192,192,1 ( Current Selection Bg )  =&gt;  Resulting color = 217,217,117,1

</code></pre>
<p dir="auto">If we apply, <strong>both</strong>, <strong><code>Mark Style 2</code></strong> and <strong><code>Mark Style 4</code></strong> on <strong>Current</strong> Background, this operation is <strong>equivalent</strong> to apply :</p>
<ul>
<li>
<p dir="auto">Firstly, apply the <strong><code>Mark Style 4</code></strong> on <strong>Current</strong> Background</p>
</li>
<li>
<p dir="auto">Secondly, apply the <strong><code>Mark style 2</code></strong> on the <strong>resulting</strong> color ( <strong><code>Mark Style 4</code></strong> + <strong>Current</strong> Background )</p>
</li>
</ul>
<p dir="auto">Note that the <strong>order</strong> is important : the style, of <strong>higher</strong> value, must be processed <strong>first</strong>. So, <strong><code>Style 4</code></strong> then <strong><code>Style 2</code></strong> !</p>
<p dir="auto">Hence :</p>
<pre><code class="language-z">255,128,0,0.392 ( Mark Style 2 )  +  205,155,255,1 ( Mark Style 4  +  White Bg             )  =&gt;  Resulting color = 225,144,155,1
255,128,0,0.392 ( Mark Style 2 )  +  191,141,255,1 ( Mark Style 4  +  Current Line Bg      )  =&gt;  Resulting color = 216,136,155,1
255,128,0,0.392 ( Mark Style 2 )  +  167,117,217,1 ( Mark Style 4  +  Current Selection Bg )  =&gt;  Resulting color = 202,121,132,1
</code></pre>
<p dir="auto">Now, let’s add a <strong>plugin</strong> highlighting ! Here is a try with the <strong><code>DSpellCheck</code></strong> plugin. For the test, I changed the default <strong>Underline Style</strong> for misspelled words, choosing the option <strong>Round Box</strong> ( Pure <strong>Red</strong> ) in <strong><code>Plugins &gt; DSpellCheck &gt; Settings... &gt; Advanced &gt; Underline Style</code></strong></p>
<p dir="auto">After some tests, I’ve found out that the <strong>opacity</strong> factor of the <strong>DSpellcheck</strong> style is <strong><code>30/255</code></strong> ≈ <strong><code>0,1176</code></strong> and acts, <strong>both</strong>, on the <strong>foreground</strong> ( Text ) and the <strong>background</strong> color. Hence :</p>
<pre><code class="language-z">255,0,0,0.1176 ( DSpellCheck Round Box Style )  +  255,255,255,1 ( White Bg )              =&gt;  Resulting color = 255,225,225,1
255,0,0,0.1176 ( DSpellCheck Round Box Style )  +  232,232,255,1 ( Current line Bg )       =&gt;  Resulting color = 235,205,225,1
255,0,0,0.1176 ( DSpellCheck Round Box Style )  +  192,192,192,1 ( Current Selection Bg )  =&gt;  Resulting color = 199,169,169,1

255,0,0,0.1176 ( DSpellCheck Round Box Style )  +  0,0,0,1       ( Black Fg )              =&gt;  Resulting color = 30,0,0,1
</code></pre>
<hr />
<p dir="auto">In my next post, I will give a <strong>last</strong> example, including <strong><code>7</code></strong> different <strong>N++ styles</strong></p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47898</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47898</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 19 Apr 2020 15:38:56 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Sun, 19 Apr 2020 10:54:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Now, that you’ve got some <strong>color</strong> notions, here are, in this post, the general <strong>algorithms</strong> to switch from <strong><code>RGB</code></strong> color space encoding to <strong><code>HSL</code></strong> space encoding and vice versa. I, intentionally, used <strong>natural</strong> language and the different calculations are very <strong>basic</strong>. I also made sure that the areas of <strong>validity</strong>, of each entry, were indicated !</p>
<p dir="auto">So, you should apply these <strong><code>2</code></strong> algorithms to your <strong>preferred</strong> programming language, very easily ! I personally tested them and all results are <strong>correct</strong> :-))</p>
<pre><code class="language-z">
#-----------------------
# Conversion RGB -&gt; HSL
#-----------------------


# ---------- Assumptions on Red, Green and Blue components -----------------------------------------

   Red in interval [ 0 - 255 ]    Grn in interval [ 0 - 255 ]    Blu in interval [ 0 - 255 ]

# ---------- Normalization to interval [ 0 - 1 ] ---------------------------------------------------

    r = Red / 255    g = Grn / 255    b = Blu / 255

# ---------- Calculus of min RGB [ 0 - 1 ] and max RGB [ 0 - 1 ]------------------------------------

    min = MIN ( r , g , b )    max = MAX ( r , g , b )

# ---------- Calculus of c [ 0 - 1 ] ---------------------------------------------------------------

    c = max - min

# ---------- Calculus of h [ 0 - 6 [ ---------------------------------------------------------------

    IF c = 0 THEN

      h = 0        # in fact, " undefined " !

    ELSE

      IF max = g THEN h = 2 + ( b - r ) / c

      IF max = b THEN h = 4 + ( r - g ) / c

      IF max = r THEN h = ( 6 + ( g - b ) / c ) MOD 6

    END IF

# ---------- Calculus of l [ 0 - 1 ] ---------------------------------------------------------------

    l = ( max + min ) / 2

# ---------- Calculus of s [ 0 - 1 ] ---------------------------------------------------------------

    IF l = 0 OR l = 1 THEN    #  Or if c = 0

      s = 0

    ELSE

      s = c / ( 1 - ABS ( max + min - 1 ) )

    END IF

# ---------- Results : Hue [ 0 - 360 [ , Saturation [ 0 - 100 ] and Lightness [ 0 - 100 ] ----------

    Hue = 60 * h    Sat = 100 * s    Lgt = 100 * l

    IF c &gt; 0 THEN PRINT Hue ; ELSE PRINT "N/A" ;

    PRINT Sat ; Lgt

# --------------------------------------------------------------------------------------------------


#-----------------------
# Conversion HSL -&gt; RGB
# ----------------------


# ---------- Assumptions on Hue, Saturation and Lightness ------------------------------------------

    Hue in interval [ 0 - 360 [    Sat in interval [ 0 - 100 ]    Lgt in interval [ 0 - 100 ]

# ---------- Normalization to intervals [ 0 - 6 [ and [ 0 - 1 ] ------------------------------------

    h = Hue / 60    s = Sat / 100    l = Lgt / 100

# ---------- Additional hypothesis -----------------------------------------------------------------

    IF l = 0 OR l = 1 THEN s = 0

# ---------- Calculus of c [ 0 - 1 ] ---------------------------------------------------------------

    c = s * ( 1 - ABS ( 2 * l - 1 ) )

# ---------- Calculus of min RGB [ 0 - 1 ] and max RGB [ 0 - 1 ] -----------------------------------

    min = l - c / 2    max = l + c / 2

# ---------- Calculus of the intermediate value x [0 - 1 ] -----------------------------------------

    x = c * ( 1 - ABS ( h MOD 2 - 1 ) )

# ---------- Calculus of r [ 0 - 1 ] , g [ 0 - 1 ] and b [ 0 - 1 ] ---------------------------------

    IF h &gt;= 0 AND h &lt; 1 THEN    r = max        g = x + min    b = min

    IF h &gt;= 1 AND h &lt; 2 THEN    r = x + min    g = max        b = min

    IF h &gt;= 2 AND h &lt; 3 THEN    r = min        g = max        b = x + min

    IF h &gt;= 3 AND h &lt; 4 THEN    r = min        g = x + min    b = max

    IF h &gt;= 4 AND h &lt; 5 THEN    r = x + min    g = min        b = max

    IF h &gt;= 5 AND h &lt; 6 THEN    r = max        g = min        b = x + min

# ---------- Results : Red [ 0 - 255 ] , Green [ 0 - 255 ] , Blue [ 0 - 255 ] components -----------

    Red = 255 * r    Grn = 255 * g    Blu = 255 * b

    PRINT Red ; Grn ; Blu

# --------------------------------------------------------------------------------------------------
</code></pre>
<hr />
<p dir="auto">However, when you’re using the traditional <strong>Windows Color</strong> dialog, below :</p>
<p dir="auto"><img src="https://camo.nodebb.org/d2240a85a170722c30ae22a1bb7a93961c358f4f?url=https%3A%2F%2Fi.imgur.com%2Fxyec79E.jpg" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto">You may have noticed that <strong>Microsoft</strong> varies the <strong><code>3</code></strong> values ( <strong>Hue</strong>, <strong>Saturation</strong>, <strong>Lightness</strong> ) in ranges <strong><code>[0 - 240]</code></strong> !</p>
<p dir="auto">Thus, here are, below, <strong><code>2</code></strong> similar <strong>algorithms</strong> to get correct <strong><code>HSL</code></strong> and <strong><code>RGB</code></strong> values, when using the <strong>Windows Color</strong> dialog :</p>
<pre><code class="language-z">
#------------------------------------------------
# Conversion RGB -&gt; HSL, in Windows Color dialog
#------------------------------------------------


# ---------- Assumptions on Red, Green and Blue components -----------------------------------------

   r in interval [ 0 - 255 ]    g in interval [ 0 - 255 ]    b in interval [ 0 - 255 ]

# ---------- Calculus of min [ 0 - 255 ] and max [ 0 - 255 ] ---------------------------------------

    min = MIN ( r , g , b )    max = MAX ( r , g , b )

# ---------- Calculus of c [ 0 - 255 ] -------------------------------------------------------------

    c = max - min

# ---------- Calculus of h [ 0 - 6 [ ---------------------------------------------------------------

    IF c = 0 THEN

      h = 0        # in fact, " undefined " !

    ELSE

      IF max = g THEN h = 2 + ( b - r ) / c

      IF max = b THEN h = 4 + ( r - g ) / c

      IF max = r THEN h = ( 6 + ( g - b ) / c ) MOD 6

    END IF

# ---------- Calculus of l [ 0 - 255 ] -------------------------------------------------------------

    l = ( max + min ) / 2

# ---------- Calculus of s [ 0 - 1 ] ---------------------------------------------------------------

    IF l = 0 OR l = 255 THEN    #  Or if c = 0

      s = 0

    ELSE

      s = c / ( 255 - ABS ( max + min - 255 ) )

    END IF

# ---------- Results : Hue [ 0 - 240 [ , Saturation [ 0 - 240 ] and Lightness [ 0 - 240 ] ----------

    Hue = 40 * h    Sat = 240 * s    Lgt = 16 * l / 17

    IF c &gt; 0 THEN PRINT Hue ; ELSE PRINT "N/A" ;

    PRINT Sat ; Lgt

# --------------------------------------------------------------------------------------------------


#------------------------------------------------
# Conversion HSL -&gt; RGB, in Windows Color dialog
#------------------------------------------------


# ---------- Assumptions on Hue, Saturation and Lightness ------------------------------------------

    Hue in interval [ 0 - 240 [    Sat in interval [ 0 - 240 ]    Lgt in interval [ 0 - 240 ]

# ---------- Normalization to intervals [ 0 - 6 [ and [ 0 - 1 ] ------------------------------------

    h = Hue / 40    s = Sat / 240    l = Lgt / 240

# ---------- Additional hypothesis -----------------------------------------------------------------

    IF l = 0 OR l = 1 THEN s = 0

# ---------- Calculus of c [ 0 - 1 ] ---------------------------------------------------------------

    c = s * ( 1 - ABS ( 2 * l - 1 ) )

# ---------- Calculus of min [ 0 - 1 ] and max [ 0 - 1 ] -------------------------------------------

    min = l - c / 2    max = l + c / 2

# ---------- Calculus of the intermediate value x [0 - 1 ] -----------------------------------------

    x = c * ( 1 - ABS ( h MOD 2 - 1 ) )

# ---------- Calculus of r [ 0 - 1 ] , g [ 0 - 1 ] and b [ 0 - 1 ] ---------------------------------

    IF h &gt;= 0 AND h &lt; 1 THEN   r = max        g = x + min     b = min

    IF h &gt;= 1 AND h &lt; 2 THEN   r = x + min    g = max         b = min

    IF h &gt;= 2 AND h &lt; 3 THEN   r = min        g = max         b = x + min

    IF h &gt;= 3 AND h &lt; 4 THEN   r = min        g = x + min     b = max

    IF h &gt;= 4 AND h &lt; 5 THEN   r = x + min    g = min         b = max

    IF h &gt;= 5 AND h &lt; 6 THEN   r = max        g = min         b = x + min

# ---------- Results : Red [ 0 - 255 ] , Green [ 0 - 255 ] , Blue [ 0 - 255 ] components -----------

    Red = 255 * r    Grn = 255 * g    Blu = 255 * b

    PRINT Red ; Grn ; Blu

# --------------------------------------------------------------------------------------------------
</code></pre>
<hr />
<p dir="auto">After a while, it seemed <strong>obvious</strong> to me that the study of color <strong>schemes</strong>, <strong>shades</strong>, <strong>tints</strong> and <strong>tones</strong> is considerably simplified when using the <strong>HSL</strong> color space instead of the <strong>RGB</strong> one. Briefly, for a color <strong>Cx</strong>, with <strong>HSL</strong> values equal, respectively, to <strong>Hx</strong>, <strong>Sx</strong> and <strong>Lx</strong> :</p>
<ul>
<li>A <strong>Pure Hue</strong> is a color with values <strong>H</strong> variable in range <strong><code>[ 0 - 359 ]</code></strong> , <strong>S</strong> = <strong><code>100</code></strong> and <strong>L</strong> = <strong><code>50</code></strong></li>
</ul>
<p dir="auto">In <strong>RGB</strong>, this implies that one of the <strong>RGB</strong> values must be <strong><code>255</code></strong>, the second must be <strong><code>0</code></strong> and the third is <strong>variable</strong> in range <strong><code>[ 0 - 255 ]</code></strong></p>
<ul>
<li>
<p dir="auto"><strong>Shades</strong> of color <strong>Cx</strong> have HSL values <strong>Hx</strong>, <strong>Sx</strong>, and <strong>L</strong> variable in range <strong><code>[ 0 - 50 ]</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Tints</strong> of color <strong>Cx</strong> have HSL values <strong>Hx</strong>, <strong>Sx</strong>, and <strong>L</strong> variable in range <strong><code>[ 50 - 100 ]</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Tones</strong> of color <strong>Cx</strong> have HSL values <strong>Hx</strong>, <strong>S</strong> in range <strong><code>[ 0 - 100 ]</code></strong>] and <strong>Lx</strong></p>
</li>
<li>
<p dir="auto"><strong>Black</strong> achromatic color has HSL values <strong>H</strong> <strong><code>undefined</code></strong> , <strong>S</strong> = <strong><code>0</code></strong> and <strong>L</strong> = <strong><code>0</code></strong></p>
</li>
<li>
<p dir="auto">All <strong>Grey</strong> achromatic colors have HSL values <strong>H</strong> <strong><code>undefined</code></strong> , <strong>S</strong> = <strong><code>0</code></strong> and <strong>L</strong> variable in range <strong><code>] 0 - 100 [</code></strong></p>
</li>
<li>
<p dir="auto"><strong>White</strong> achromatic color has HSL values <strong>H</strong> <strong><code>undefined</code></strong> , <strong>S</strong> = <strong><code>0</code></strong> and <strong>L</strong> = <strong><code>100</code></strong></p>
</li>
<li>
<p dir="auto">Colors involved in <strong>Gradient</strong> between color <strong>Cx</strong> and its <strong>complementary</strong> color <strong>Cc</strong>, have HSL values <strong>H</strong> variable in range <strong><code>[Hx - Hc]</code></strong>, <strong>Sx</strong> and <strong>Lx</strong></p>
</li>
</ul>
<hr />
<p dir="auto">Now, for all color <strong>schemes</strong>, regarding the color <strong>Cx</strong> ( <strong><code>Hx, Sx, Lx</code></strong> ), any <strong>other</strong> color of a particular <strong>scheme</strong> keeps the <strong>Sx</strong> and <strong>Lx</strong> values. Only, the hue <strong>Hx</strong> is <strong>different</strong> for each color of the <strong>scheme</strong>. Thus, we can summarize :</p>
<ul>
<li>
<p dir="auto">In the <strong>Complementary</strong> scheme : <strong><code>2</code></strong> colors, with respective hues <strong>Hx</strong> and <strong><code>Hx + 180°</code></strong> ( or <strong><code>Hx - 180°</code></strong> and <strong>Hx</strong> )</p>
</li>
<li>
<p dir="auto">In the <strong>Diadic</strong> scheme : <strong><code>2</code></strong> colors, with respective hues <strong>Hx</strong> and <strong><code>Hx + 60°</code></strong> ( or hues <strong><code>Hx - 60°</code></strong> and <strong>Hx</strong> )</p>
</li>
<li>
<p dir="auto">In the <strong>Neutral</strong> scheme :  <strong><code>3</code></strong> colors, with respective hues <strong>Hx</strong> , <strong><code>H - 15°</code></strong> and <strong><code>H + 15°</code></strong></p>
</li>
<li>
<p dir="auto">In the <strong>Analog</strong> scheme : <strong><code>3</code></strong> colors, with respective hues <strong>Hx</strong> , <strong><code>H - 30°</code></strong> and <strong><code>H + 30°</code></strong></p>
</li>
<li>
<p dir="auto">In the <strong>Split Complementary</strong> scheme : <strong><code>3</code></strong> colors, with respective hues <strong>Hx</strong> , <strong><code>Hx - 150°</code></strong> and <strong><code>Hx + 150°</code></strong></p>
</li>
<li>
<p dir="auto">In the <strong>Triadic</strong> scheme : <strong><code>3</code></strong> colors, with respective hues <strong>Hx</strong> , <strong><code>Hx - 120°</code></strong> and <strong><code>Hx + 120°</code></strong></p>
</li>
<li>
<p dir="auto">In the <strong>Tetradic</strong> scheme : <strong><code>4</code></strong> colors, with respective hues <strong><code>Hx - 60°</code></strong>, <strong>Hx</strong>, <strong><code>Hx + 120°</code></strong> and <strong><code>Hx + 180°</code></strong></p>
</li>
</ul>
<p dir="auto">( or  <strong><code>Hx - 180°</code></strong>, <strong><code>Hx - 120°</code></strong>, <strong>Hx</strong> and <strong><code>Hx + 60°</code></strong> )</p>
<ul>
<li>
<p dir="auto">In the <strong>Square</strong> scheme : <strong><code>4</code></strong> colors, with respective hues <strong><code>Hx - 90°</code></strong>, <strong>Hx</strong>, <strong><code>Hx + 90°</code></strong> and <strong><code>Hx + 180°</code></strong></p>
</li>
<li>
<p dir="auto">In the <strong>Monochromatic</strong> scheme, <strong><code>7</code></strong> colors are generally involved and have the HSL values <strong>Hx</strong>, <strong>Sx</strong> and the following <strong><code>L</code></strong> values :</p>
<ul>
<li><strong><code>Lx - 15%</code></strong>, <strong><code>Lx - 10%</code></strong>, <strong><code>Lx - 5%</code></strong>, <strong><code>Lx</code></strong>, <strong><code>Lx + 5%</code></strong>, <strong><code>Lx + 10%</code></strong>, <strong><code>Lx + 15%</code></strong></li>
</ul>
</li>
</ul>
<p dir="auto">Remark that when the color <strong>hue</strong> is equal to :</p>
<ul>
<li>
<p dir="auto"><strong><code>60°</code></strong>, <strong><code>180°</code></strong> or <strong><code>300°</code></strong>, this implies that <strong><code>2</code></strong> values, of the RGB <strong>triplet</strong>, are equal to <strong><code>255</code></strong></p>
</li>
<li>
<p dir="auto"><strong><code>0°</code></strong>, <strong><code>120°</code></strong> or <strong><code>240°</code></strong>, this implies that <strong><code>2</code></strong> values, of the RGB <strong>triplet</strong>, are equal to <strong><code>0</code></strong></p>
</li>
</ul>
<p dir="auto">At last, when <strong><code>1</code></strong> or <strong><code>2</code></strong> values, of the RGB <strong>triplet</strong> are equal to <strong><code>0</code></strong> or <strong><code>255</code></strong> and the third value in range <strong><code>[ 1 - 254 ]</code></strong>, this implies that saturation <strong>S</strong> = <strong><code>100</code></strong></p>
<hr />
<p dir="auto">In the <strong>next</strong> post, I’ll speak about the Notepad++ plugin <strong><code>Quick Color Picker +</code></strong>, which is <strong>necessary</strong> to study color matters, in N++, as well as various <strong>calculations</strong> to obtain the <strong>actual</strong> colors resulting after one or simultaneous <strong>highlightings</strong> from N++ or other plugins</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47897</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47897</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 19 Apr 2020 10:54:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Fri, 18 Oct 2019 20:59:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <strong>All</strong>,</p>
<pre><code class="language-z">----------------------------------- General Information ----------------------------------------------------------

https://blog.asmartbear.com/color-wheels.html                             ( Introduction )

http://www.surendranath.org/GPA/General/ColorAS/ColorAS.html              ( Additive and Subtractive coloring )

https://www.w3schools.com/colors/default.asp                              ( Excellent Color Tutorial )

https://www.physicsclassroom.com/class/light/Lesson-2/Color-Subtraction   ( Color Subtraction process )

https://htmlcolorcodes.com/color-picker                                   ( See section "Color Harmonies", below the Color Picker area )

https://www.december.com/html/spec/colorhslhexuse.html                    ( Color Schemes Definitions / Examples )

https://www.december.com/html/spec/colorshadesuse.html                    ( Color Schemes Definitions / Examples )


---------------------------------- Wikipedia Documentation -------------------------------------------------------

https://en.wikipedia.org/wiki/Color_theory

https://en.wikipedia.org/wiki/Color

https://en.wikipedia.org/wiki/Afterimage


https://en.wikipedia.org/wiki/Web_colors

https://en.wikipedia.org/wiki/Tints_and_shades


https://en.wikipedia.org/wiki/Shades_of_black ( or blue, brown, cyan, green, gray, magenta, orange, pink, red, violet, white, yellow )


https://en.wikipedia.org/wiki/RGB_color_model

https://en.wikipedia.org/wiki/CMY_color_model

https://en.wikipedia.org/wiki/RYB_color_model

https://en.wikipedia.org/wiki/Color_scheme


https://en.wikipedia.org/wiki/Comparison_of_color_models_in_computer_graphics

https://en.wikipedia.org/wiki/HSL_and_HSV

https://en.wikipedia.org/wiki/CMYK_color_model


https://en.wikipedia.org/wiki/Color_difference

https://en.wikipedia.org/wiki/Gamma_correction#Simple_monitor_tests

https://en.wikipedia.org/wiki/Alpha_compositing


----------------------------------- Color Code Converters / Conversion Formulas ----------------------------------

https://www.rapidtables.com/convert/color/index.html             ( Converter / Conversions )

https://www.rapidtables.com/convert/number/hex-to-decimal.html   ( Hex - Decimal Conversion )

https://www.rapidtables.com/convert/color/hex-to-rgb.html        ( Hex - RGB Conversion )


----------------------------------- On-Line Color Pickers (0) ----------------------------------------------------

https://www.w3schools.com/colors/colors_picker.asp                                             ( Hex, RGB, HSL input )

http://chir.ag/projects/name-that-color  [ /#xxxxxx ]                                    (1)   ( Hex input )

https://www.color-blindness.com/color-name-hue                                           (1)   ( Hex, RGB, HSV  input )

https://www.tydac.ch/color                                                                     ( Hex, RGB, HSV, Dec input )

https://www.colorhexa.com  [ /xxxxxx ]                                                         ( All formats input )

https://www.rapidtables.com/web/color/RGB_Color.html                                           ( Hex, RGB, HSV input )

https://www.color-hex.com  [ /xxxxxx ]                                                         ( Hex, RGB, HSL, HSV input )

https://htmlcolorcodes.com/color-picker                                                  (2)   ( Hex, RGB input )

https://www.computerhope.com/tips/tip143.htm                                             (3)   ( Mouse gestures )

http://www.copysense.co.uk/mixem.php                                                           ( Hex, RGB input )

http://davidjohnstone.net/pages/lch-lab-colour-gradient-picker  [#xxxxxx[,yyyyyy]...]    (4)   ( All formats input )

https://www.colorschemer.com/color-picker                                                      ( Hex, RGB, HSL input )

https://encycolorpedia.com   [ /xxxxxx ]                                                 (5)   ( All formats input )

https://encycolorpedia.com/paints  [ ?color=xxxxxx ]

https://www.colorcombos.com/combotester.html  [ ?color0=xxxxxx&amp;color1=yyyyyy&amp;.....&amp;show_text=[N/Y] ]   ( All formats input )


----------------------------------- Notes on Color Pickers -------------------------------------------------------

(0) - The syntaxes 'xxxxxx' and 'yyyyyy' refer to the HTML 6-Hexadecimal Digits color

(1) - Displays also the Color Name

(2) - Input in HSL or CMYK Color Space zones does not produce correct results !

(3) - 2 simultaneous colors-pickers

(4) - Preferably, select the "show all" option for the "Color Selection Mode", in order to display controls in all Color Spaces

    - Possibility of several simultaneous Color Pickers

    - To be sure to display all step colors, in the gradient list, for all color spaces, simply choose the swatches number, according to the formula :

          Swatches Number = Stops Number + ( Stops Number - 1 ) * k , where k is an integer &gt;= 0

(5) - Beware : Erroneous Gradient to Complementary if CIELCHuv or HSL Color Space choice


----------------------------------- Color Gradient Generators ----------------------------------------------------

https://www.w3schools.com/colors/colors_gradient.asp

https://www.colorhexa.com/color-gradient


http://davidjohnstone.net/pages/lch-lab-colour-gradient-picker

http://davidjohnstone.net/pages/cubehelix-gradient-picker


https://meyerweb.com/eric/tools/color-blend/#:::hex


----------------------------------- Color Contrast Calculators ---------------------------------------------------

https://snook.ca/technical/colour_contrast/colour.html   ( Color Contrast Check )

http://www.msfw.com/Services/ContrastRatioCalculator     ( Color Contrast Ratio Calculator with samples )


----------------------------------- Color Blind Simulators -------------------------------------------------------

https://www.color-blindness.com/coblis-color-blindness-simulator


----------------------------------- Color Scheme Generators [ and Color Pickers ] --------------------------------

https://coolors.co/app                      ( Click on Space key to generate a NEW 5-colors palette )

https://color.adobe.com/create/color-wheel

https://www.sessions.edu/color-calculator   ( From 1 to 3 simultaneous colors-pickers )

https://bahamas10.github.io/ryb             ( Use option Mask in "Color Harmonies" and choose Color Space in "Interpolation" ! )


----------------------------------- Color Palette Generators from an Image or URL --------------------------------

http://www.colr.org

https://www.rapidtables.com/web/color/color-tester.html

http://mkweb.bcgsc.ca/color-summarizer/?analyze

https://labs.tineye.com/color/

https://color.adobe.com/create

http://colormind.io/image

https://www.canva.com/colors/color-palette-generator

http://www.colorfavs.com

https://coolors.co/app

https://encycolorpedia.com


----------------------------------- NET Image Search Engines -----------------------------------------------------

https://color.adobe.com/explore

https://labs.tineye.com/multicolr          ( Search images on Flickr, from 1 to 5 given colors, in adjustable proportions )

http://designspiration.net/colors/xxxxxx   ( Search design images with colors similar to color with HTML value xxxxxx )

https://www.tineye.com

https://images.google.com                  ( Search [ similar ] images from text or from the uploaded image less than ~ 5.5 Mb )

https://www.shutterstock.com               ( Search [ similar ] images from text or from the uploaded image less than 5 Mb )


----------------------------------- Color Charts / Palettes ------------------------------------------------------

https://htmlcolorcodes.com/color-chart                    ( Color charts )

http://html-color-codes.com                               ( HTML Color Chart in Hex )

http://html-color-codes.com/rgb.html                      ( HTML Color Chart in RGB )


https://www.december.com/html/spec/colorhslhex.html       ( Hue intervals of 30° )

https://www.december.com/html/spec/colorhslhex10.html     ( Hue intervals of 10° )

https://www.december.com/html/spec/colorhslhex6.html      ( Hue intervals of  6° )


https://www.december.com/html/spec/colorhsltable.html     ( Hue intervals of 30° )

https://www.december.com/html/spec/colorhsltable10.html   ( Hue intervals of 10° )

https://www.december.com/html/spec/colorhsltable6.html    ( Hue intervals of  6° )


https://www.december.com/html/spec/colorspottable.html


http://mkweb.bcgsc.ca/colornames/#color-name-swatches     ( Hue intervals of 30° and Luminance intervals of 20 )

https://www.color-hex.com/color-palettes                  ( 58520 palettes listed ! )

https://www.canva.com/learn/100-color-combinations        ( 100 Brilliant Palette Combinations )

http://files.culturenumerique.webnode.fr/200000039-4f4605138d/nuancier_quadri.pdf  ( 1,900 colors )


----------------------------------- Miscellaneous ----------------------------------------------------------------

http://people.csail.mit.edu/jaffer/Color/Dictionaries.html                 ( List of color lists ! )

https://www.pantone.com/color-intelligence/color-education/color-iq-test   ( Hues Vision Tester : funny and informative ! )

https://www.canva.com/colors/color-meanings                                ( Color meanings )

http://mkweb.bcgsc.ca/color                                                ( 'Colorconvert' and 'colorsnap' DOS mode software )


http://pngimg.com/download/19631    ( Google logo )

        Red = EA4335               Green = 34A853                Yellow = FBBC05                  Blue = 4285F4
    ( ~ Cinnabar E34234 )    ( ~ Chateau Green 40A860 )    ( ~ Selective Yellow FFBA00 )    ( ~ Dodger Blue 1E90FF )


----------------------------------- Lists of Named colors --------------------------------------------------------

https://www.color-hex.com/color-names.html                                       505 colors

http://chir.ag/projects/ntc/ntc.js                                             1,566 colors

https://www.colorhexa.com/color-names                                            746 colors

https://color-ize.com/color-list.php#D                                           170 colors   ( Extract with Source Code )

http://www.agence-casanova.fr/professionnel/identitaire/pantone.html             907 colors

https://www.toutes-les-couleurs.com/nuancier-pantone.php                         992 colors   ( Extract with Source Code )

http://www.stardustcolors.com/documents/fr/nuancier-pantone.pdf                  992 colors

https://www.rapidtables.com/web/color/RGB_Color.html#color-table                 155 colors

http://www.resene.co.nz/swatches/download_pencils.xls                         10,125 colors

https://sashat.me/2017/01/11/list-of-20-simple-distinct-colors                    20 colors

https://htmlcolorcodes.com/color-names                                           140 colors   ( HTML  + CSS Color Names )

https://www.computerhope.com/htmcolor.htm                                        342 colors

http://www.workwithcolor.com/color-chart-full-01.htm                             258 colors

https://www.colorcombos.com/color-tags.html                                    1,598 Color Names

https://github.com/bahamas10/css-color-names/blob/master/css-color-names.json    148 colors   ( HTML  + CSS Color Names )


https://cloford.com/resources/colours/500col.htm                                 552 colors

https://cloford.com/resources/colours/namedcol.htm                               140 colors   ( HTML + CSS Color Names )


https://www.w3schools.com/colors/colors_crayola.asp                              318 colors

https://www.w3schools.com/colors/colors_names.asp                                140 colors   ( HTML Color Names )

https://www.w3schools.com/colors/colors_trends.asp                               126 colors


http://applied-r.com/download/6568/                                              657 colors   ( PDF file with Colors by Name )

http://applied-r.com/download/6577/                                              657 colors   ( PDF file with Hex Color values )


http://people.csail.mit.edu/jaffer/Color/resenecolours.txt                     1,383 colors   ( 2007 )

http://people.csail.mit.edu/jaffer/Color/Resene-2010-rgb.txt                   1,378 colors   ( Use preferably the previous list ! )

http://people.csail.mit.edu/jaffer/Color/rgb.txt                                 732 colors   ( X Consortium )


https://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F                        334 colors   \
                                                                                              |
https://en.wikipedia.org/wiki/List_of_colors:_G%E2%80%93M                        235 colors    &gt;  956 colors
                                                                                              |
https://en.wikipedia.org/wiki/List_of_colors:_N%E2%80%93Z                        387 colors   /


https://en.wikipedia.org/wiki/List_of_colors_%28compact%29                     1,537 colors   ( Extract with Source Code )

https://en.wikipedia.org/wiki/List_of_colors_by_shade                            526 colors   ( Extract with Source Code )


https://en.wikipedia.org/wiki/X11_color_names#Color_name_chart                   145 colors   ( X11 Color Names )

https://en.wikipedia.org/wiki/Web_colors#X11_color_names                         140 colors   ( X11 Color Names )


https://en.wikipedia.org/wiki/Web_colors#Color_table                             216 colors   ( = 6 * 6 * 6 Web-Safe Colors )

https://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors                      164 colors


https://www.december.com/html/spec/colorcodes.html                             1,109 colors

https://www.december.com/html/spec/colorucl.html      \
                                                       &gt;                         932 colors   ( + 42 NON-defined )
https://www.december.com/html/spec/colorucl2.html     /


https://encycolorpedia.com/html                                                  148 colors   ( HTML  + CSS Color Names )

https://encycolorpedia.com/named                                               1,690 colors


http://mkweb.bcgsc.ca/colornames/color.names.rgbonly.txt                       9,284 colors

http://mkweb.bcgsc.ca/colornames/color.names.txt                               9,284 colors

http://mkweb.bcgsc.ca/colornames/rgb.names.txt.gz                                             ( 217 Mo file ! )

http://mkweb.bcgsc.ca/colornames/#color-name-swatches                          7,820 colors


https://xkcd.com/color/rgb                                                       954 colors

https://xkcd.com/color/rgb.txt )                                                 954 colors

https://blog.xkcd.com/2010/05/03/color-survey-results                             48 colors   ( Section "RGB values" )


https://www.colorschemer.com/roblox-color-codes                                  208 colors

https://www.colorschemer.com/color-names                                         139 colors   ( HTML and CSS Color Names )

https://www.colorschemer.com/rgb-color-codes                                     139 colors   ( RGB Color Names )


----------------------------------- Additional Theoretical Information on Color ----------------------------------

http://www.handprint.com/HP/WCL/wcolor.html   ( Color Theory )

http://www.handprint.com/LS/CVS/color.html    ( Color Vision )

http://www.handprint.com/HP/WCL/wtech.html    ( Color Techniques )


http://www.handprint.com/HP/WCL/color1.html   ( Light and the Eye )

http://www.handprint.com/HP/WCL/color4.html   ( Color Constancy )

http://www.handprint.com/HP/WCL/tech13.html   ( Color Harmony and Design )


------------------------------------------------------------------------------------------------------------------
</code></pre>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47896</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47896</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 18 Oct 2019 20:59:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Fri, 18 Oct 2019 23:44:30 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">How are you, all ? You were probably wondering what was happening to me ? Fortunately, nothing serious. I’m just fine ! Actually, since <strong>more</strong> than a month, I was <strong>intensely</strong> studying numerous aspects of <strong>color</strong>, as well as color coding in computer science and, of course, some <strong>practical</strong> results for our <strong>beloved</strong> editor ! Be convinced that I’m quite <strong>pleased</strong> to be back in the <strong>Community</strong> and to <strong>share</strong> my searches ;-))</p>
<p dir="auto">First, in the <strong>next</strong> post, you’ll see a ( very <strong>looooooong</strong> ! ) list of links, relative to <strong>color</strong> and <strong>vision</strong>, on-line color programs and color lists. Even if you do <strong>not</strong> plan to visit all the different sites, I <strong>strongly</strong> advice you to have a look to the <strong>first</strong> section, named <strong>General Information</strong>, in order to have an <strong>overview</strong> on color matters, used in computers, which should be <strong>useful</strong> for the rest of the discussion !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47895</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47895</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 18 Oct 2019 23:44:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Fri, 06 Sep 2019 20:16:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said:</p>
<blockquote>
<p dir="auto">Off topic : I’m, now, going to have a glance to that recent issue :</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5830" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5830</a></p>
</blockquote>
<p dir="auto">How’s that going?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46875</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46875</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 06 Sep 2019 20:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Mon, 02 Sep 2019 15:26:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ronald-fischer" aria-label="Profile: Ronald-Fischer">@<bdi>Ronald-Fischer</bdi></a></p>
<p dir="auto">I supposed the true answer is that it is not a simple thing.  Regarding foreground and background, even that is complicated because even though both appear for each type of setting, sometimes one or the other is ignored (see <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> 's table above).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46748</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46748</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 02 Sep 2019 15:26:55 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Mon, 02 Sep 2019 12:42:20 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> You are close! Indeed, you are right in that it takes the background from “selected text colour”, but the foreground is still taken depending on the respective syntax highlighting, which means I have to find a background colour for this, which is different from the current background colour, but at the same time sufficiently distinct from every foreground colour which might be defined by the syntax settings.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46738</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46738</guid><dc:creator><![CDATA[Ronald Fischer]]></dc:creator><pubDate>Mon, 02 Sep 2019 12:42:20 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Fri, 30 Aug 2019 14:50:48 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></p>
<p dir="auto">Maybe we are just happy that if some sort of red (or blue, or whatever) is chosen…some sort of red (or…) results.  :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46700</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46700</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 30 Aug 2019 14:50:48 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Fri, 30 Aug 2019 14:41:41 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:</p>
<blockquote>
<p dir="auto">sample shown should reflect that to show a representative sample</p>
</blockquote>
<p dir="auto">How many different backgrounds should it show the sample against?  Because there’s the default background, and the selected-line background, and …  All of those will influence what the final result looks like.  (Probably my vote would go for default background, but the results will still vary depending on circumstances.)  I think if the box at least admitted which styles were used with transparency (even if it doesn’t let you choose how much transparency), then the user could be considered informed that the final result won’t match exactly what’s in the sample box.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46699</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46699</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 30 Aug 2019 14:41:41 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Fri, 30 Aug 2019 14:38:17 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:</p>
<blockquote>
<p dir="auto">BTW, how are you “measuring” to produce your measured values above?</p>
</blockquote>
<p dir="auto">Taking a screenshot and using the <code>mspaint.exe</code> eyedropper</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46698</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46698</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 30 Aug 2019 14:38:17 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Fri, 30 Aug 2019 14:28:09 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:</p>
<blockquote>
<p dir="auto">I still maintain it’s transparency</p>
</blockquote>
<p dir="auto">And that’s fine, but I maintain that the sample shown should reflect that to show a representative sample.  :)</p>
<p dir="auto">Maybe I will enter an issue.</p>
<p dir="auto">BTW, how are you “measuring” to produce your measured values above?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46697</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46697</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 30 Aug 2019 14:28:09 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Fri, 30 Aug 2019 13:27:28 GMT]]></title><description><![CDATA[<p dir="auto">I still maintain it’s transparency. If it is, there should be a reasonably-consistent mapping from what you program for <strong>Find Mark Style &gt; Background</strong> to what you measure, compared to the background.  Since we know that something that’s 100% transparent will only show the background, and nothing of what you program; and since we know that something that’s 0% transparent will only show the programmed value and nothing of what’s in the background, we can figure out that the formula is: <code>transparency = (measured-programmed)/(background-programmed)</code>.</p>
<p dir="auto">So taking your example of red on white:</p>
<pre><code>background: 255 255 255     WHITE
programmed: 255   0   0     BRIGHT RED
measured  : 255 155 155
=&gt; 155/255=60.8% of the way from programmed to background (ie, 60% transparent)
</code></pre>
<p dir="auto">Change the background to black, with the same programmed value, and I see (100,0,0) as the darker red highlight:</p>
<pre><code>background:   0   0   0     BLACK
programmed: 255   0   0     BRIGHT RED
measured  : 100   0   0
=&gt; 155/255=60.8% of the way from programmed to background
</code></pre>
<p dir="auto">Change the background to charcoal:</p>
<pre><code>background:  63  63  63     CHARCOAL
programmed: 255   0   0     BRIGHT RED
measured  : 138  38  38
R   CALC: (138-255=-117)/(63-255=-192) = 117/192 = 60.9%
G,B CALC: (38-0=38)/(63-0) = 38/63 = 60.3%
</code></pre>
<p dir="auto">After three experiments getting within resolution of each other as far as measured color vs programmed and background, I am going to claim that it’s 60% transparency.</p>
<blockquote>
<p dir="auto">if the user wants to set up a certain color, and after doing so gets something different, what’s the point?</p>
</blockquote>
<p dir="auto">Yeah, it would be nice to have the ability to enable/disable transparency on those “highlight” styles, like <strong>Find Mark</strong> and <strong>Smart Highlighting</strong>.  Maybe you should <a href="https://notepad-plus-plus.org/community/topic/15741/faq-desk-feature-request-or-bug-report" rel="nofollow ugc">suggest it</a> ;-).  (I already made and cancelled an issue report for this thread, so I’m not going to do another.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46696</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46696</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 30 Aug 2019 13:27:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Fri, 30 Aug 2019 12:32:48 GMT]]></title><description><![CDATA[<p dir="auto">So I think I remain confused…or just dumb.  If I create and then “mark” a bunch of whitespace (using the <code>Search</code> &gt; <code>Mark...</code> function), and then call up the Style Configurator for <code>Find Mark Style</code>, the colors simply don’t match.  Nothing else coloring-wise should be going on on the lines where the whitespace is to create some sort of “blend”; they were definitely “pure white” before marking.  Clearly the colors are different in the screenshots (I used a freshly unzipped portable 7.7.1), below.</p>
<p dir="auto">It begs the question, if the user wants to set up a certain color, and after doing so gets something different, what’s the point?</p>
<p dir="auto"><img src="https://camo.nodebb.org/402f143caa7c9ff07f2e79264ac18d1d9097f835?url=https%3A%2F%2Fi.imgur.com%2FhigT0x9.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="https://camo.nodebb.org/35115d00812cc52e83390dd87eb529ffea5735c2?url=https%3A%2F%2Fi.imgur.com%2FuNkiDc5.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/46695</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46695</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 30 Aug 2019 12:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Thu, 29 Aug 2019 21:25:27 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:</p>
<blockquote>
<p dir="auto">why the background color of text doesn’t seem to match the sample color presented in Style Configurator…?</p>
</blockquote>
<p dir="auto">Now that mine’s fixed, I think it match for me:<br />
<img src="https://camo.nodebb.org/ef3f1ee79f308644ab2e03e685f479e3b120a776?url=https%3A%2F%2Fi.imgur.com%2FSxT0sQf.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">The only discrepancy is the Smart Highlighting… but highlighting often has alpha/transparency, so that makes sense. Especially since it’s different depending on whether the background is normal white, or the active line, the highlight color changes slightly.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46683</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46683</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 29 Aug 2019 21:25:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Thu, 29 Aug 2019 20:53:33 GMT]]></title><description><![CDATA[<p dir="auto">So I guess even after Peter’s diversionary tactic  ;) , my question still remains of why the background color of text doesn’t seem to match the sample color presented in Style Configurator…?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46682</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46682</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 29 Aug 2019 20:53:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Thu, 29 Aug 2019 18:09:20 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>,</p>
<p dir="auto">I’m rather <strong>reassured</strong> because the <strong>multiple</strong> tests I did, with, both, N++ <strong><code>v7.7</code></strong> and <strong><code>v7.7.1</code></strong>, did <strong>not</strong> show any anomaly ;-))</p>
<p dir="auto">Of course, a software is <strong>never</strong> perfect and can miss some <strong>associations</strong> or <strong>mis-uses</strong> ! But the <strong>good</strong> news is that, starting from a <strong>fresh official</strong> download of Notepad++, everything just go <strong>right</strong> :-))</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S</strong>. :</p>
<p dir="auto"><strong>Off topic</strong> : I’m, now, going to have a glance to that <strong>recent</strong> issue :</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5830" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5830</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/46681</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46681</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 29 Aug 2019 18:09:20 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Thu, 29 Aug 2019 17:43:14 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:</p>
<blockquote>
<p dir="auto">so where did extra or non-standard stuff actually come from</p>
</blockquote>
<p dir="auto">They magically appeared out of nowhere.  They <em>aren’t</em> in my <code>stylers.xml</code>, and when i looked for those styles today (after having unloaded and reloaded notepad++ multiple times in the intervening day), those styles <strong>are not listed</strong>.</p>
<p dir="auto">I honestly don’t know where they came from.  I am guessing they came when I was experimenting with the python for <a href="https://notepad-plus-plus.org/community/topic/18134/style-token-not-saved/7" rel="nofollow ugc">Style token not saved</a>… I’m not sure what I did (though I had tried some pretty strange scintilla commands before you posted), but even that was almost a week ago, and I usually restart Notepad++ more often than that.  So I don’t know where they came from… But they are gone now.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46680</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46680</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 29 Aug 2019 17:43:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Thu, 29 Aug 2019 17:30:49 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></p>
<p dir="auto">Ok…so where did extra or non-standard stuff actually come from, for you?  If I look at mine, I have exactly what <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> has enumerated.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46679</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46679</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 29 Aug 2019 17:30:49 GMT</pubDate></item><item><title><![CDATA[Reply to How to set &quot;Find&quot; Background colour? on Thu, 29 Aug 2019 17:26:26 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Some styles are not part of the default styles list, as the Mark Color style !</p>
</blockquote>
<p dir="auto">Apparently so.  When I went to my fresh npp unzip (ie, exactly what came out of the zipfile), it didn’t have that extra style, and the styles behaved as expected.  My bad.  I’ll go close the issue.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/46678</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/46678</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 29 Aug 2019 17:26:26 GMT</pubDate></item></channel></rss>