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

Add auto tag closing and code completion #10

Open
tom-leamon opened this issue Jun 17, 2023 · 0 comments
Open

Add auto tag closing and code completion #10

tom-leamon opened this issue Jun 17, 2023 · 0 comments

Comments

@tom-leamon
Copy link
Owner

Unfortunately, react-simple-code-editor is a very minimalistic library. It does not provide features such as auto tag closing and code completion. It simply gives you a customizable, syntax-highlighted textarea, leveraging Prism.js for highlighting.

For advanced features like auto-closing tags, code completion (also known as intellisense), error linting and more, you might want to look into more feature-rich code editor libraries like:

  • Monaco Editor: This is the editor that powers Visual Studio Code, and it comes with a vast array of features built-in, including auto-completion, multi-cursor support, and more. However, it's a larger library, and integration into a React project can be more complex.

  • Ace Editor: This editor is feature-rich and has a React wrapper react-ace. It also includes features like code completion and auto tag closing, though some features might need to be enabled via specific configuration or plugins.

  • CodeMirror: This is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with over 100 language modes and various addons that implement more advanced editing functionality. A rich programming API and a CSS theming system are available for customizing CodeMirror to fit your application, and extending it with new functionality.

Remember, switching to a different editor library would require a significant refactor of your current code. If your project requirements are strict about using react-simple-code-editor, you would have to implement auto tag closing and code completion features by yourself which might be quite complex.

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

1 participant