AtomMaterialUI / color-highlighter

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

Highlighting too aggressive - allow me to choose what to highlight #101

Closed OndrejSpanel closed 11 months ago

OndrejSpanel commented 1 year ago

I find the current highlighting a bit too much aggressive. In some cases it highlights things which are not colors at all.

Short hex numbers in Scala sources:

image

Decimal numeric literals in Scala sources:

image

I would like to have hex colors highlighted only when starting with 0x or #.

I would also prefer not to have highlighted words which are color names, like blue. This is a bit annoying when the same word means a color or an object, like orange or pumpkin. I see this in data configuration YAML files, but I get it can happen anywhere.

Describe the solution you'd like

I would like settings which would allow me to tell which color notations to highlight and which not.

Describe alternatives you've considered

Another option would be not to highlight short numbers and color names at all, which would suit me, but this is perhaps not acceptable for other users.

mallowigi commented 1 year ago

Fair enough. Unfortunately I have no time to work on this project at all, so I currently have no indication when I'll be able to do so.

OndrejSpanel commented 1 year ago

I will try if perhaps I would be able to prepare a PR.

mallowigi commented 11 months ago

will be available next relese through settings