Posts under Jekyll

Jekyll plugin for Prism

04 Oct 2014

As a software developer I require excellent support for syntax highlighting in a blogging platform. This blog uses Jekyll as a platform and it has two options for syntax highlighting, Pygments and Rouge. Pygments is written in Python and supports over 100 languages but it didn’t have a few of the features I was looking for in syntax highlighting. The Ruby based Rouge seems to have many features but was very limited by Jekyll’s implementation. Given that the defaults of Jekyll didn’t work for me I decided to go with what I was familiar with: a Javascript based syntax highlighter. Specifically, I decided to use Prism, which has hooks for plugins, uses standard markup and support for all the languages I would need. Since I try my best to not mix HTML into the Markdown these posts are written in, I decided to write a small plugin to add support for Prism to Jekyll.

Continue Reading...