Page 1 of 1

FIXED? Highlight CSS color values is highlighting HTML entities

Posted: 15 May 2023 12:15
by crtrubshaw
Hi Rickard, the function to highlight CSS colors is identifying HTML entities as color values, e.g. £

Re: Highlight CSS color values is highlighting HTML entities

Posted: 18 May 2023 19:13
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/.

Re: Highlight CSS color values is highlighting HTML entities

Posted: 19 May 2023 08:15
by pjj
£ in HTML file is highlighted as an entity, but when you hover mouse cursor over it color tooltip is displayed.

Re: Highlight CSS color values is highlighting HTML entities

Posted: 19 May 2023 09:34
by crtrubshaw
Yes, but if the # is preceded by an &, it's an entity, not a colour code.

Re: Highlight CSS color values is highlighting HTML entities

Posted: 19 May 2023 11:13
by Rickard Johansson
Maybe you could post an image showing the issue?

Re: Highlight CSS color values is highlighting HTML entities

Posted: 19 May 2023 16:03
by crtrubshaw
20230519-1600.png
20230519-1600.png (22.65 KiB) Viewed 1750 times

P.S. I know I should style this properly to achieve the spacing, don't judge me :?

Re: Highlight CSS color values is highlighting HTML entities

Posted: 19 May 2023 18:30
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.