This issue is one of the most consistently duplicated on the forum, for example:
“Highlight HTML and CSS”
“CSS comments should be in GREEN”
“css formatting not working on embed style sheet…”
etc.
@peterjones’s initial reply is the correct one. You can also refer to this more detailed explanation regarding the current limitations of Lexilla.
For now, a relatively simple way to edit HTML documents with embedded style and script highlighting is to use the tree-sitter plugin.
Note that only “light” style themes are currently supported, and you will have to manually download and extract the configuration files to get it working.
[image: 1779564282293-npptreesitter-v110.png]