Kronuz / ColorHighlight

🎨 Lightweight Color Highlight colorizer for Sublime Text
MIT License
118 stars 12 forks source link

Changing preferences in global sublime preferences #20

Closed mvllow closed 4 years ago

mvllow commented 4 years ago

For automation purposes, I try to modify any package settings in my global sublime preferences.

Examples JsPrettier: "js_prettier": { "auto_format_on_save": true } SublimeLinter: "SublimeLinter.linters.eslint.selector": "source.ts"

Is this possible with ColorHighlight? I tried any combination I could think of, both with and without user.

Some attempts

Tried the below, with several other variations, mixing and matching the different ways I've seen done with other plugins.

"ColorHighlight.user.highlight": false
"Color Highlight": { "user": { "highlight": false } }
"hlight.highlight": false

Any help would be much appreciated (: Thanks for the great plugin!

LOQUILLO commented 4 years ago

Hi @mvllow I see that impossible because the configuration is already predetermined with commands and options to change. You only have this: "highlight": true, "gutter_icon": "circle", "highlight_values": true, "named_values": true, "hex_values": true, "0x_hex_values": true, "xterm_color_values": true, "rgb_values": true, "hsv_values": true, "hsl_values": true, "hwb_values": true, "lab_values": true, "lch_values": true

But if you can create configuration profiles for each extension, for example a profile for .css, another for .html, another for .js, another for .php and there you can define different global options for each of those extensions