-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proper JSX support in the code editor #19
Comments
Much better than it was. Thanks 👍 |
Have you tried https://github.com/antimatter15/codemirror-jsx? // EDIT: I see that the timbur's version that you tried is actually a fork of this one. So maybe it's not even worth trying... And codemirror/codemirror5#3122 is still open, we might get something useful from there later. Also notice that on http://gaearon.github.io/react-hot-loader/ they do have CodeMirror with proper JSX support, so it's definitely possible. That's how they init the CodeMirror:
And if all fails, I see a workaround:
|
Hack to make JSX highlighting better. #19.
I’m closing it until CodeMirror has proper support. |
@sapegin @mik01aj Just pinging you that CodeMirror has proper support as of codemirror/codemirror5@b3f9487 |
@petetnt Cooooooool! Thanks! |
Oh yeah forgot to add that codemirror/codemirror5#3745 tracks the issues the mode still might have (it has gotten some great updates in the past few days too) 👍 |
Try something like this.
The text was updated successfully, but these errors were encountered: