Which library does GitHub use to beautify JavaScript code?
I am looking for a good code prettify library.
Which library does GitHub use to beautify JavaScript code?
I am looking for a good code prettify library.
http://help.github.com/troubleshooting-common-issues/
We use the excellent pygments library for our syntax highlighting. Check their list of supported languages and learn how to specify a lexer for yours. If you contribute a lexer back to pygments, let us know and we’ll make sure it’s made available here on GitHub.
Github do not appear to use any client side library to render code. You can see, using something like Chrome's Net tab, that the HTML views of code arrive from the server prewrapped with vast numbers of span elements.