-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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] Diff and Language Highlights #830
Comments
It turns out shiki has support for this: shikijs/shiki#259. Will take some time but I think it can be integrated here. It might also simplify our highlightLines plugin. |
Glad to hear that ❤️ |
Okay, just tested this, gonna take back my words. That shiki support won't work for us. To support diffs with syntax highlighting, we'll need to highlight code without Consider using this for now:
It looks great even without the code being syntax highlighted: I am closing this as not-planned. Might visit this later if there is enough demand. If someone from the community has a nice way of implementing this, then we may consider adding it officially. |
Is your feature request related to a problem? Please describe.
That issue was for prism but VitePress uses shiki. Is it possible to achieve language highlight with diff language?
Describe the solution you'd like
na
Describe alternatives you've considered
na
Additional context
I use language highlighting for now instead of showing diff because without language highlight diff looks really bad. It takes some time for users to under what changes between two snippets but it's better highlighted.
Validations
The text was updated successfully, but these errors were encountered: