-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Recognize more embedded modes in htmlmixed mode #1198
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
Conversation
The existing htmlmixed mode already parses the content of style blocks as css. Does anyone really use handlebars/mustache script tags? (Why? Isn't the point of those templating languages that they are mixed into the actual document, rather than contained in a script tag that the browser won't render?) |
i believe it's actually fairly common. |
Yes. We added the mode to the state for easily detecting mode anywhere in htmlmixed document. |
You'll want to use |
Same for |
@marijnh - templates are put in |
state.mode is still referenced in copyState. Let me know if I should also remove that. |
I've already removed that reference earlier today, when I noticed it while |
Removed |
Merged, and followed up with a few modifications. Please verify that I didn't break anything in my patch (attached). |
Nice. @redmunds -- let's coordinate on the next merge from upstream (hopefully near the beginning of this sprint). |
This is code we've been running in Brackets for a long time but never pushed it back.
This recognizes more modes in HTML mixed mode files: