Skip to content

howcasperwhat/mathjax-highlight

Repository files navigation


logo

MathJax Highlight

Visual Studio Marketplace Version Visual Studio Marketplace Installs
GitHub last commit GitHub issues GitHub stars

Introduction

A VSCode Extensions to highlight MathJax formulas.

Feature and Usage

feature 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:

  1. Change scopes to different value.
  2. 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