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

Regression: Codemirror syntax highlight broken in 2.0+ #4014

Open
JeppeKlitgaard opened this issue Nov 20, 2024 · 1 comment
Open

Regression: Codemirror syntax highlight broken in 2.0+ #4014

JeppeKlitgaard opened this issue Nov 20, 2024 · 1 comment

Comments

@JeppeKlitgaard
Copy link
Contributor

Description

After updating to 2.0+ (2.5 specifically), I have noticed that the codemirror syntax highlighting has stopped working. I thought it was something wrong on my end, but it appears to also be broken on the official nicegui documentation: NiceGUI docs.

@falkoschindler
Copy link
Contributor

Hi @JeppeKlitgaard,

It seems like some themes don't include syntax highlighting, like the default "basicLight". But it works for others like this:

ui.codemirror('print(42)', language='Python', theme='vscodeLight')

Screenshot 2024-11-20 at 15 25 52

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