MDX syntax definitions for Sublime Text based on its HTML, Markdown and JSX syntaxes.
The easiest way to install is using Package Control. It's listed as MDX
.
- Open
Command Palette
using ctrl+shift+P or menu itemTools → Command Palette...
- Choose
Package Control: Install Package
- Find
MDX
and hit Enter
- Download appropriate MDX.sublime-package for your Sublime Text build.
A suffix (e.g.-st4xxx
) denotes the least required ST build for the sublime-package to work. - Rename it to MDX.sublime-package
- Copy it into Installed Packages directory
Note
To find Installed Packages...
- call Menu > Preferences > Browse Packages..
- Navigate to parent folder
Warning
Manually installed packages are not automatically updated by Package Control.
- Open an
.mdx
file - Select
View > Syntax > MDX
MDX extends Sublime Text's HTML and Markdown syntax definitions.
If MDX syntax highlighting doesn't work and console displays syntax errors in _MDX.sublime-syntax, please make sure to remove any out-dated syntax override.
Steps:
- call Menu > Preferences > Browse Packages..
- Look for HTML, Markdown and JavaScript folders
- Remove them or at least delete any syntax definition in them.