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?


As this help page of 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.