KamiKillertO / vscode-colorize

A vscode extension to help visualize css colors in files
Apache License 2.0
268 stars 37 forks source link

Arbitrary Color Patterns #837

Open bmos opened 2 years ago

bmos commented 2 years ago

I'd love a way to define custom color matching patterns so this would work with more color formats.

I use this in VSCodium to work with lua code from FantasyGrounds (a virtual tabletop for playing RPGs) where colors are represented in two rather strange ways:

A string with 6 characters such as ColorManager.COLOR_FULL = "DDDDDD"; -- Replaceable Color: Usage Full

A table of r g b values such as ColorManager.COLOR_GRADIENT_TOP = { r = 0, g = 0, b = 0 }; -- Replaceable Channels: Gradient Top

For example: https://github.com/SirMotte/FGU-Theme-Hearth/blob/Hearth-Edition-Main/scripts/manager_color_2.lua