You can have code snippets highlighted so that they are easier to read on your GitHub Pages site using Rouge, Jekyll's default syntax highlighter.

Syntax highlighting on GitHub Pages works the same way it does on GitHub Enterprise with GitHub Enterprise flavored Markdown. For more information, see "Creating and highlighting code blocks."

Rouge is Jekyll's default syntax highlighter and is compatible with the Pygments highlighter. If Pygments is set in your _config.yml file then your pages site will automatically build with Rouge as the default highlighter instead. For more information, see "Fixing highlighting errors."

Further reading