Description
How can I enable syntax highlighting for .mdx files in VSCode?
Hey @mhemrg,
It doesn't look like there is a language extension for this yet. You could either set MDX files to get picked up as markdown or jsx files for partial highlighting of that flavour or create a VSCode language extension https://code.visualstudio.com/docs/extensionAPI/language-support.
@mhemrg I added the below snippet to my VS Code settings so that it uses the markdown language syntax highlighting, this doesn't work properly because the "React" bits are not highlighted properly, but at least it's much better.
"files.associations": {
"*.mdx": "markdown"
}
There is an open issue on mdx repo for that: https://github.com/mdx-js/mdx/issues/119
I want this a lot too, will be so nice 馃檹
To facilitate user feedbacks and make a really good roadmap, now we're using Canny as a tool to create our roadmap 馃槏
We think that is better keep Github issues only for bugs and other issues! 馃悶
This issue is already on our roadmap, so I'll close this issue in favor of it!
Just found this extension by Matija Marohni膰 馃憤
Most helpful comment
@mhemrg I added the below snippet to my VS Code settings so that it uses the markdown language syntax highlighting, this doesn't work properly because the "React" bits are not highlighted properly, but at least it's much better.