AtomMaterialUI / color-highlighter

JetBrains plugin to preview colors directly from within the code.
MIT License
40 stars 23 forks source link

Highlight hex colors in string literals #102

Closed OndrejSpanel closed 11 months ago

OndrejSpanel commented 1 year ago

Is your feature request related to a problem? Please describe.

In my Scala sources colors are highlighted fine when written as hex literals, like 0xAFE154, but not when written in a string literals, like "#AFE154".

image

Describe the solution you'd like

I would like colors which follow the web format (i.e. starting with # and having six hex digits) to be highlighted in String literals as well.