FIXED? Highlight CSS color values is highlighting HTML entities

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
crtrubshaw
Posts: 322
Joined: 06 Jun 2012 11:08

FIXED? Highlight CSS color values is highlighting HTML entities

Post by crtrubshaw »

Hi Rickard, the function to highlight CSS colors is identifying HTML entities as color values, e.g. £
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Re: Highlight CSS color values is highlighting HTML entities

Post by Rickard Johansson »

Not sure I understand :? HTML entities should not be used in CSS files, or in style sections. You should use \00a3 https://oinam.github.io/entities/.
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Highlight CSS color values is highlighting HTML entities

Post by pjj »

£ in HTML file is highlighted as an entity, but when you hover mouse cursor over it color tooltip is displayed.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
crtrubshaw
Posts: 322
Joined: 06 Jun 2012 11:08

Re: Highlight CSS color values is highlighting HTML entities

Post by crtrubshaw »

Yes, but if the # is preceded by an &, it's an entity, not a colour code.
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Re: Highlight CSS color values is highlighting HTML entities

Post by Rickard Johansson »

Maybe you could post an image showing the issue?
crtrubshaw
Posts: 322
Joined: 06 Jun 2012 11:08

Re: Highlight CSS color values is highlighting HTML entities

Post by crtrubshaw »

20230519-1600.png
20230519-1600.png (22.65 KiB) Viewed 1256 times

P.S. I know I should style this properly to achieve the spacing, don't judge me :?
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Re: Highlight CSS color values is highlighting HTML entities

Post by Rickard Johansson »

Made some changes and fixed a few issues with color value highlighting and color hints in v15.90.

Not sure it fixes this issue though, since I can't reproduce it. But I did notice some highlighting issues while testing.
Post Reply