MathJax Highlight
Introduction
A VSCode Extensions to highlight MathJax formulas.
Feature and Usage
syntax color is based on theme
Configurations
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.
Reference
VSCode Markdown | VSCode Markdown Math
License
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