Skip to content
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

Can I implement a custom language intellisense, autocomplete and code colorization using react-codemirror in my react app ? #683

Open
sandipan-saha opened this issue Sep 5, 2024 · 2 comments

Comments

@sandipan-saha
Copy link

Hi,

I have been asked to integrate codemirror into a react app, while providing intellisense and code colorization for an app-specific custom language.
I'm pretty new to codemirror, and after going through the docs for both codemirror and react-codemirror, I'm still not sure how this can be implemented for a react application.

Is there any way I can do this ?

@jaywcjlove
Copy link
Member

@sandipan-saha react-codemirror is a wrapper around CodeMirror. If you want to customize a language, it's the same as with CodeMirror—you'll need to create a custom extension.

The official example is here -> https://codemirror.net/examples/lang-package/

@sandipan-saha
Copy link
Author

@sandipan-saha react-codemirror is a wrapper around CodeMirror. If you want to customize a language, it's the same as with CodeMirror—you'll need to create a custom extension.

The official example is here -> https://codemirror.net/examples/lang-package/

Thanks @jaywcjlove ... looking into this right away!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants