我有以下代码:
{% highlight java %}
NullPointerException at org.springframework.core.GenericTypeResolver.getTypeVariableMap
{% endhighlight %}
Run Code Online (Sandbox Code Playgroud)
当我生成我的网站时jekyll --pygments,html结果是:
<div>
<pre><code class="java">NullPointerException at org.springframework.core.GenericTypeResolver.getTypeVariableMap</code>
</pre>
</div>
Run Code Online (Sandbox Code Playgroud)
在此html输出中没有预期<span class="n">或<span class="s2">标记,并且代码未突出显示.
难道我做错了什么?
wna*_*nto 38
您需要生成css才能突出显示.
$ pygmentize -S default -f html > css/pygments/default.css
Run Code Online (Sandbox Code Playgroud)