This is a custom liquid tag for using John Sundell's excellent Swift syntax highlighter Splash with your Jekyll blog.
- A global install of the SplashHTMLGen tool on the same computer as your Jekyll 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"
;
{% splash %}
guard let user = User(name: "Dohn Joe", emailAddress: validAddress) else {
return
}
{% endsplash %}
An example of this tag in action can be seen here