Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BROWSERS_COLORS work only in css files #358

Open
ptkdev opened this issue Feb 9, 2020 · 0 comments
Open

BROWSERS_COLORS work only in css files #358

ptkdev opened this issue Feb 9, 2020 · 0 comments

Comments

@ptkdev
Copy link

@ptkdev ptkdev commented Feb 9, 2020

Javascript file (colors.js):

const hexColors = ['#911eb4', '#46f0f0', '#f032e6', '#bcf60c', '#fabebe', '#008080', '#e6beff', '#9a6324', '#fffac8', '#800000', '#aaffc3', '#808000', '#ffd8b1', '#000075', '#e6194b', '#3cb44b', '#ffe119', '#4363d8', '#f58231'];
const textColors = ["orange", "yellow", "blue", "purple", "pink", "green", "red"];

Extension don't detect colors in textColors array.

VSCode Settings:

{  ...
    "colorize.languages": ["javascript", "json", "html", "nunjucks", "css", "scss"],
    "colorize.colorized_colors": ["HEXA", "RGB", "HSL", "BROWSERS_COLORS"]
}
@ptkdev ptkdev changed the title BROWSER_COLORS work only in css files BROWSERS_COLORS work only in css files Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.