vscode-colorize icon indicating copy to clipboard operation
vscode-colorize copied to clipboard

Arbitrary Color Patterns

Open bmos opened this issue 3 years ago • 0 comments

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

bmos avatar Aug 16 '22 16:08 bmos