-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Tagged template literals #3026
Comments
You definitely don't want to monkey-patch |
That sounds like a good approach, we could then request brackets move to javascriptmixed as the default JavaScript mode. |
+1 for a embedding html and other template languages in js is getting pretty common as libraries move away from pure vdom-building to faster strategies that diff only dynamic parts of templates. would be cool to get html highlighting in Codemirror for libs like [1] https://github.com/trueadm/t7 |
I'd like an easy way to contribute plugins for the JavaScript mode to add special overlays for specific tagged template literals. Currently I have this code which attempts to add the overlay via some horrible hacks so that something like:
gets syntax highlighted as JavaScript with a section of jade in it.
The text was updated successfully, but these errors were encountered: