Reputation: 109
How can I create a custom syntax highlighter to use with Jekyll on GitHub Pages?
Upvotes: 2
Views: 1146
Reputation: 1324258
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.
Upvotes: 1