GitHub uses Linguist as its syntax highlighter. Linguist is an open-source library developed in Ruby.