jekyll-materialize-starter-template icon indicating copy to clipboard operation
jekyll-materialize-starter-template copied to clipboard

Syntax highlighting not working

Open mmrailroading opened this issue 6 years ago • 1 comments

In the Welcome sample post there is a snippet of ruby code, but it is not syntax highlighted?

mmrailroading avatar Jun 04 '18 03:06 mmrailroading

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.

mmrailroading avatar Jun 04 '18 04:06 mmrailroading