splashtag

splashtag

Custom liquid tag for using John Sundell's excellent Swift syntax highlighter Splash with your Jekyll blog.

splashtag

This is a custom liquid tag for using John Sundell's excellent Swift syntax highlighter Splash with your Jekyll blog.

Prerequisites

  • A global install of the SplashHTMLGen tool on the same computer as your Jekyll installation.

Installation

  • Put the splashtag.rb file in the _plugins folder of your Jekyll repository

_plugins/splashtag.rb

  • Put the _splash.scss file in the _sass folder of your Jekyll repository. For example, if you're overriding the Minima theme, put it in the _sass/minima folder
_base.scss
_layout.scss
_splash.scss            
_syntax-highlighting.scss
  • Then import it as follows in the minima.scss file
@import
  "minima/base",
  ...
  ...
  "minima/splash"
;

Usage

{% splash %}
guard let user = User(name: "Dohn Joe", emailAddress: validAddress) else {
    return
}
{% endsplash %}

An example of this tag in action can be seen here