-
-
Notifications
You must be signed in to change notification settings - Fork 551
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
Custom language definition for syntax highlighter #749
Comments
There is an ongoing effort to add Expressive Code to Starlight which would use I think it uses Altho, I don't know how accessible this skiki API is through Expressive Code but maybe @hippotastic may have more informations regarding that part. |
fantastic, thanks so much for the quick response! |
The Once you have a |
Thank you! If it's a matter of making a change to the codebase itself, I don't mind making my own PR. |
Thanks for the issue and discussion! Sounds like this would need to be addressed in upstream libraries rather than Starlight directly, so will close the issue here if that’s OK — we can always revisit later if it turns out there’s some work needed on our end to expose new API options to users. |
What version of
starlight
are you using?0.10.0
What is your idea?
As a user, I would like to provide my own language definition for syntax highlighting.
Why is this feature necessary?
I admit this is an edge case - I'm developing a language and would like to provide syntax highlighting for it in my code examples. It would prevent me from having to implement a component from scratch for syntax highlighting.
(side note - I love Starlight, much thanks to the team for building this amazing tool)
Do you have examples of this feature in other projects?
Participation
The text was updated successfully, but these errors were encountered: