I use the following syntax for an html file that contains both HTML and Latex:
%YAML 1.2
name: HTML (Mathjax)
scope: text.html.mathjax
file_extensions:
- html
- htm
- shtml
- xhtml
contexts:
main:
- include: scope:text.tex.latex
- include: scope:text.html.basic
Using this syntax I am able to color highlight both the HTML and the Latex. However, I have not been able to get the BracketHighlighter package to work with this syntax, Does anyone have any suggestions?