Skip to content

MathJax Highlight

VSCode Marketplace · GitHub Repository

This is a plugin for comment-formula.

WARNING

  1. Reload the Window to make the highlight work when update comment-formula.languages or comment-formula.capture.
  2. Since VSCode only supports static Textmate grammar files, this extension modifies the package.json and 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-formula automatically, and provide syntax highlighting for the custom configurations.

Features

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"
  }
}

Released under the MIT License.