Answer the question
In order to leave comments, you need to log in
How to use multiple syntax highlights?
I am writing a react application, since all the content of the application is in a js file, the editor highlights js, but as I work, I have to write html tags into the application, etc. Is there any way to add html to js syntax highlighting?
Answer the question
In order to leave comments, you need to log in
If it's still relevant, take a look at how highlighting is implemented in the Packages/markdown.sublime-package file. There, of course, the entry is made through ```html, but you can always change it for yourself. Also, if I'm not mistaken, on the official website of the sublime in the documentation section there are examples of embedding highlights.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question