-
Notifications
You must be signed in to change notification settings - Fork 98
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 highlighting for diff #42
Comments
The system used is highlight.js which is meant to have diff support
|
Hmm, it kind of works. For some reason this is being detected as python (I'm assuming) instead of diff. Thoughts?
|
Highlight.js uses a concept called relevance to auto-detect languages. Their diff parser only adds relevance for lines wrapped in Nothing that can be done other than getting the diff parser improved or waiting for #33 so you can force diff highlighting. |
Hi, it would be great if syntax highlighting worked for diffs (git diff). It seems to detect the python code, but not the fact it's an actual diff and I don't see a way to force it.
Thanks!
The text was updated successfully, but these errors were encountered: