Article version: Enterprise Server 2.14

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2019-07-12. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Using syntax highlighting on GitHub Pages

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

Ask a human

Can't find what you're looking for?

Contact us