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 Syntect custom syntax & themes support #3964

Open
antaalt opened this issue Feb 4, 2024 · 0 comments
Open

Add Syntect custom syntax & themes support #3964

antaalt opened this issue Feb 4, 2024 · 0 comments

Comments

@antaalt
Copy link

antaalt commented Feb 4, 2024

Hello,
I am trying to work with the syntect code editor which is great, the issue I have now is that it seems impossible to load custom syntax & themes to add support for others languages than the one available by default in sublime text, maybe I just missed the API, but it would be nice to be able to load a custom tmTheme and sublime-syntax as Syntect support this via SyntaxSetBuilder.

From what I saw, egui run syntect::parsing::SyntaxSet::load_defaults_newlines() which is created with the cache, but we could somehow allow egui to load custom themes & syntax aswell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants