A VSCode Extensions to highlight MathJax formulas.
syntax color is based on theme
Set the scopes in your User Settings (not workspace) to avoid repeated reload prompts. Use the command Developer: Inspect Editor Tokens and Scopes
to determine the global scope for your language (e.g., 'source.python' for python
, 'source.js' for javascript
, 'source' for all source languages).
Default scopes
:
{
"mathjax-highlight.scopes": [
"source.c",
"source.cpp",
"source.java",
"source.python"
]
}
Warning
Changes take effect after reloading the editor due to VS Code limitations.
Reload Window
Message Triggers:
- Change
scopes
to different value. - Update this extension when
scopes
have been changed before.
Feel free to open an issue if you encounter any problem or have any suggestion.
VSCode Markdown | VSCode Markdown Math
Code is under the MIT License.
Logo using carbon:function as an element is under the Apache License 2.0.
Fonts used in feature image are Dancing Script
(for Before
and After
) under the Open Font License and Input
(for code) under the Input Font License