Closed ferretwithaberet closed 3 years ago
I forked this repo and added this feature, it is not tested extensively and might never be, the feature does not work exactly like I explained in this issue but it is good enough at the moment to fulfill my needs. You can see my changes in this commit.
Description
Ability to detect RGB colors like
"255,255,255"
or"255, 255, 255"
which do not explicitly have thergb()
orrgba()
format. There should be a setting for these. (I know it might bork inside arrays with 3 or more numbers).My ideea would be that it would always detect the color if it is inside of a string, so "255,255,255", '255, 255, 255'.
And the addition of another setting called
color-highlight.matchInCodeLanguages
which would be a list of languages likecolor-highlight.languages
to let you select the languages you want it to try to match the colors in the actual code. If possible, you could ignore arrays that have less than or more than 3 elements.Examples
If I would set
color-highlight.matchInCodeLanguages
to['javascript']
:A great use case would be for KDE Plasma's
.color
files, used for color schemes, which look like: