How can I create a custom syntax highlighter to use with Jekyll on GitHub Pages?
Asked
Active
Viewed 1,055 times
1 Answers
1
Jekyll 3 and above is using rouge (An elegant, extendable code highlighter written in pure Ruby.).
See also "Syntax Highlighting in Jekyll".
In order to add a custom syntax highlighter, you submit a pull request to that project. As an example, consider the PR 650: LiveScript support, for issue 309.
Once that PR is merged, you can use it on GitHub pages.
Note 2022, as noted in rouge-ruby/rouge
issue 1902:
The old website
rouge.jneen.net
was deployed on the Heroku platform. Since the Free tier has been retired, our application is no longer available. I believe @jneen is looking at hosting the site somewhere else.

VonC
- 1,262,500
- 529
- 4,410
- 5,250
-
end of 2022 and the Rouge link is broken (most likely because Heroku is no longer offering free tiers) – J.R. Bob Dobbs Dec 29 '22 at 16:47
-
@J.R.BobDobbs Thank you for the update. I have edited the answer to explain the situation, as well as restored the deprecated link. – VonC Dec 29 '22 at 16:57