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

Syntax highlight for sql input box #2

Open
XiangpengHao opened this issue Nov 20, 2024 · 2 comments
Open

Syntax highlight for sql input box #2

XiangpengHao opened this issue Nov 20, 2024 · 2 comments

Comments

@XiangpengHao
Copy link
Owner

Our syntax highlighting is basically none:

image

It would be great to incorporate monaco editor (or other modern editors) that provides fancy SQL language support.

But it seems very challenging to do this in Rust...

@etolbakov
Copy link
Contributor

etolbakov commented Jan 24, 2025

@XiangpengHao
I played a bit with monaco 😅 This is the best I could get.
The CodeEditor is mocked to show the predefined table name.
If you are fine in general I can proceed further
Image

@XiangpengHao
Copy link
Owner Author

This looks super cool! Thank you for the demo @etolbakov
Not sure if it's easy to do, but I would be great if we can also make multi-line sql look better, potentially with auto formatting.

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