jekyll-materialize-starter-template
jekyll-materialize-starter-template copied to clipboard
Syntax highlighting not working
In the Welcome sample post there is a snippet of ruby code, but it is not syntax highlighted?
To work around this I installed https://prismjs.com/ and then surrounded my code like this (I'm using Racket, replace language-scheme below with language-ruby if you want ruby code highlighting like the sample provides):
<pre>
<code class="language-scheme">
(define (add-3-to-state current-state)
(+ current-state 3))
</code>
</pre>
(you also need to remove the liquid highlight and endhighlight lines of course)
HTH anyone who needs syntax highlighting with this nice jekyll theme.