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

Does not work in JSON files

Open ayako02 opened this issue 4 years ago • 4 comments

The extension doesn't highlight the css colours in json file

ayako02 avatar Nov 19 '20 04:11 ayako02

Yes, I was hoping it would work on settings.json as well, as the extension color highlight became unstable and wanted to replace it. Any plans to make it also work in JSON files?

GBrachetta avatar Mar 26 '21 19:03 GBrachetta

It works just fine, but you need to enable it for JSON and JSON with comments in your config.

    "colorize.languages": [      
        "json",
        "jsonc",
        "css",
        "sass",
        "scss",
        "less",
        "postcss",
        "sss",
        "stylus",
        "xml",
        "svg"
    ],
    "colorize.include": [
        "**/*.json",
        "**/*.css",
        "**/*.scss",
        "**/*.sass",
        "**/*.less",
        "**/*.styl"
    ]

viking1304 avatar Apr 30 '21 19:04 viking1304

Indeed, it works! Thank you! I just miss having the decorators on the scroll bar though...

GBrachetta avatar Apr 30 '21 20:04 GBrachetta

It works with the solution above. thanks.

ceyhanbekiroglu avatar Oct 21 '22 10:10 ceyhanbekiroglu