-
Notifications
You must be signed in to change notification settings - Fork 455
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
Syntax highlight the JS in %raw
#6214
Comments
To add custom syntax highlighting for embedded JavaScript code within your custom language in a VSCode extension, follow these steps:
Note: This assumes you have already created a language extension with its own grammar file, and that the built-in JavaScript syntax rules are available in your environment through the |
Don here: rescript-lang/rescript-vscode#774 |
E.g.
could syntax highlight the JS code.
This issue could be a combination of finding an alternative surface syntax, e.g.
js`() => 3`
and adapt the editor extensions's grammar to recognise this syntax and inject a JS syntax highlighting grammar.
The text was updated successfully, but these errors were encountered: