-
Notifications
You must be signed in to change notification settings - Fork 9
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
How to get same color scheme as babel-sublime? #22
Comments
babel-sublime highlights several syntax features differently from the core JavaScript syntax. (JS Custom inherits the core highlighting except where an extension deliberately overrides it.) In some cases this is a matter of subjective preference. For instance, babel-sublime highlights unquoted object keys as In other cases babel-sublime does not follow the standard practices used by most other syntaxes. (These practices are documented in the official scope naming guidelines, but these guidelines are not comprehensive. A community effort to formalize more specific guidelines is in its early stages.) For example, babel-sublime highlights the dot ( But if you like the appearance of babel-sublime, there's no reason you can't recreate it with JS Custom. What I'd recommend is extending your color scheme. Save the following as {
"rules": [
{
"scope": "keyword.operator.word, keyword.control.import-export",
"foreground": "var(red2)"
},
]
} If there are more highlighting differences that you'd like to change to resemble babel-sublime, I'd be happy to help. It's likely that other users may be used to the babel-sublime appearance and would benefit from a ready-made patch. |
Awesome! It works for the import and export |
Babel sublime looks like this
And JS Custom - React looks like this
I want to get the same orange imports and dots on JS Custom, is this possible?
JS code that I used for this example
The text was updated successfully, but these errors were encountered: