Skip to content

What JavaScript syntax highlighter does GitHub use?

What syntax highlighter is GitHub using on their site to display the code when you click on the file names?

Answer

As this help page of GitHub.com says, they’re using the Linguist library, which is written in Ruby.

Linguist’s highlighters for each language are within vendor/grammars. And a list of supported languages can be found here, here, and here.