Sublime Forum

Block highlighting

#1

Hello,

I’ve just started using Sublime Text and really like it so far.
I have a quick question: the file I’m looking at is a mix of HTML, JavaScript and PHP.
Sublime Text changes background colour for blocks of code for each language, much like an alternating rows colour table.

My question is, does it “recognize” that “that” is HTML, “that” JS and “that” PHP and that’s why it highlights them differently?
Also, if it does recognize different languages in the same file, it provides adequate highlighting for each as if they were in their own file?

Thank you.

0 Likes