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

Feature Request: Implement Syntax Highlighting for Input Code Snippets #8

Open
blackkspydo opened this issue Mar 16, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@blackkspydo
Copy link
Contributor

Problem Statement

The "codeverter" website currently provides syntax highlighting only for output code snippets. However, there is no syntax highlighting for input code snippets. Incorporating syntax highlighting for the input code snippets would enhance the user experience by improving code readability and comprehension during the code conversion process.

Proposed Solution

I propose implementing syntax highlighting for input code snippets using a content editable div instead of a textbox. This approach would allow for better integration of syntax highlighting libraries and ensure consistent code presentation across both input and output sections.

Alternative Solutions

An alternative solution could involve using a third-party code editor component, such as Ace or Monaco, that offers built-in syntax highlighting and additional editing features. These editors can be embedded directly into the website, providing a feature-rich and consistent user experience.

@TGlide
Copy link
Owner

TGlide commented Mar 16, 2023

This could be interesting! The biggest challenge IMO is auto-detecting a language, and performance concerns.

I don't particularly love the idea of using a code-editor because the syntax highlighting engine would probably be different from the one we're using. If we do use a code editor, I'd rather have it all with the same syntax highlighting (we can change the one we have today if that works).

Feel free to tackle this if you want! Would be greatly appreciated 💪

@TGlide TGlide added the enhancement New feature or request label Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants