Whether you’re using Markdown or HTML, Jekyll makes it easy for you to insert beautiful code blocks into your pages.
As of v3.0 Jekyll now uses Rouge as the default syntax highlighter. Github only supports Rouge.
Quick and painless: Open your favorite command line tool and enter the following command.
gem install rouge
Then, in your
_config.yml, set Rouge as your syntax highlighter:
There is still support for the older Pygments.rb highlighter but its use for new projects is not recommended.
More information can be found on the official Jekyll website.
Copyright © 2017 Sverrir Sigmundarson, licensed under CC-BY-4.0.