Skip to content
Advertisement

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?

Advertisement

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.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement