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

Post bug reports when testing beta versions here.
Post Reply
User avatar
pjj
Posts: 2198
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

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

Post 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 1757 times
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6739
Joined: 19 Jul 2006 14:29

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

Post by Rickard Johansson »

Seems to work fine at my end...

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

Could you post a small example file?
User avatar
pjj
Posts: 2198
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

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

Post 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 :?
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6739
Joined: 19 Jul 2006 14:29

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

Post 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 1725 times
User avatar
Rickard Johansson
Site Admin
Posts: 6739
Joined: 19 Jul 2006 14:29

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

Post by Rickard Johansson »

This took me some time to figure out myself 8) In the menu <View->Highlight color values->File types> enable "HTML".
User avatar
pjj
Posts: 2198
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

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

Post 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?)
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
Post Reply