4 ms·
Thanks! The highlihght is pretty much constrained to diff (on pull requests, commits and compares[1]), but it could work on any page. I've mentioned[2] how I u
by DanielRibeiro 13y ago
Thanks!
The highlihght is pretty much constrained to diff (on pull requests, commits and compares[1]), but it could work on any page. I've mentioned[2] how I used jquery-syntaxhighlighter to do it, which itself is a fork of Google's Prettify in order to do the heavy lifting of syntax discovery and actual highlight.
[1] https://github.com/danielribeiro/github-diff-highlight/blob/master/src/header.js#L2 https://github.com/danielribeiro/github-diff-highlight/blob/...
[2] https://github.com/danielribeiro/github-diff-highlight#hacking https://github.com/danielribeiro/github-diff-highlight#hacki...