Page 1 of 1

SOLVED: [16.25b3] No colored background for color values in <style> tags

Posted: 01 Jul 2024 11:43
by pjj
In CSS highlighter color values have colored backgrounds; <style> sections in HTML documents get CSS syntax highlighting, but color values has no indicative backgrounds:
no background color.png
no background color.png (15.5 KiB) Viewed 5127 times

Re: [16.25b3] No colored background for color values in <style> tags

Posted: 02 Jul 2024 13:25
by Rickard Johansson
Seems to work fine at my end...

2024-07-02_142452.png
2024-07-02_142452.png (7.36 KiB) Viewed 5101 times

Could you post a small example file?

Re: [16.25b3] No colored background for color values in <style> tags

Posted: 02 Jul 2024 15:03
by pjj

Code: Select all

<style>
    #test { color: red; font-weight: 600; }
    p {
        color: #abcabc;
        color: red;
    }
    .foo {
        color: #abcabc;
    }
</style>
The strangest thing is that I renamed my TextEd.ini (and *bak.ini), got fresh editor and it is still not displayed :?

Re: [16.25b3] No colored background for color values in <style> tags

Posted: 02 Jul 2024 17:19
by Rickard Johansson
Yes, that is strange...

I copied the code in an empty HTML file and this is what I get:

2024-07-02_181701.png
2024-07-02_181701.png (6.6 KiB) Viewed 5095 times

Re: [16.25b3] No colored background for color values in <style> tags

Posted: 03 Jul 2024 09:38
by Rickard Johansson
This took me some time to figure out myself 8) In the menu <View->Highlight color values->File types> enable "HTML".

Re: SOLVED: [16.25b3] No colored background for color values in <style> tags

Posted: 03 Jul 2024 10:06
by pjj
Image

Yeah, that was it! Thank you! (Perhaps these settings should be doubled somewhere in the Options, so they can be more discernible?)