U
U
urajo2020-10-22 15:19:11
Sublime Text
urajo, 2020-10-22 15:19:11

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

1 answer(s)
A
AleksVersus, 2021-04-03
@AleksVersus

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 question

Ask a Question

731 491 924 answers to any question