Pygments syntax highlighting in Jekyll without starting a

后端 未结 4 1437
心在旅途
心在旅途 2021-01-21 06:18

If you use Jekyll with the Pygments syntax-highlighting package, it’s possible to write

{% highlight clojure %}
(def something :foobar)
{% endhighlight %}
         


        
4条回答
  •  灰色年华
    2021-01-21 07:12

    Two years later, I went ahead and created my own Jekyll plugin to provide inline syntax highlighting. It’s called inline_highlight and it can be used like so:

    In Clojure, keywords like {% ihighlight clojure %}:foobar{% endihighlight %}
    are prepended by colons.
    

提交回复
热议问题