Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

VSCode syntax highlighter #23

Closed
mhemrg opened this issue Jun 13, 2018 · 6 comments
Closed

VSCode syntax highlighter #23

mhemrg opened this issue Jun 13, 2018 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@mhemrg
Copy link

mhemrg commented Jun 13, 2018

Question

Description
How can I enable syntax highlighting for .mdx files in VSCode?

@Swapnull
Copy link
Contributor

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.

@mrmartineau
Copy link

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

@TimPetricola
Copy link

There is an open issue on mdx repo for that: mdx-js/mdx#119

@pedronauck
Copy link
Member

pedronauck commented Jun 13, 2018

I want this a lot too, will be so nice 🙏

@pedronauck pedronauck added enhancement help wanted Extra attention is needed labels Jun 13, 2018
@pedronauck
Copy link
Member

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!

👉🏻 Check this issue on roadmap

@nikolasburk
Copy link

Just found this extension by Matija Marohnić 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants