MathJax Highlight
VSCode Marketplace · GitHub Repository
This is a plugin for comment-formula.
WARNING
- Reload the Window to make the highlight work when update
comment-formula.languagesorcomment-formula.capture. - Since VSCode only supports static Textmate grammar files, this extension modifies the
package.jsonand the JSON files defining the grammar. So VSCode may detect destructive changes, and alert you to reload the window.
If the verbose message affects DX, you can configure code, color, and scale in comment-formula instead of this extension.
Features
- Detect configuration options from
comment-formulaautomatically, and provide syntax highlighting for the custom configurations.

Configurations
map
Some language ids are not the same as the scope names, so you should set mathjax-highlight.map to map the language ids to the scope names.
e.g.
json
{
"mathjax-highlight.map": {
"python": "python",
"javascript": "js"
}
}