我正在使用Jekyll顏料來突出顯示我博客中的一些代碼,並且突出顯示標記中的任何代碼似乎都消失了,即沒有生成Html。爲什麼使用高亮標記進行語法高亮mking代碼消失?
下面是一些這樣的代碼
{% highlight java %}
ObjectMapper mapper = new ObjectMapper();
mapper.getSerializationConfig().
setSerializationInclusion(JsonSerialize.Inclusion.NON_NULL);
{% endhighlight %}
其他一些細節的示例;
- OS:OSX山獅子紅寶石版本:
- 紅寶石1.9.3p194(2012-04-20的修訂35410)[x86_64的-darwin12.1.0]
- 化身版本:化身0.11.2
雖然谷歌搜索有人建議在運行此命令檢查Pygments來做
echo 'puts "Hello World"' | pygmentize -l ruby -f html -O encoding=utf-8
對於我來說,返回此錯誤:
Traceback (most recent call last):
File "/usr/local/bin/pygmentize", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: Pygments==1.5