用法和以前一样,不过可以在 ` 后面加上语言名称,具体的名称参见 http://pygments.org/docs/lexers/ ,如:ruby, bash, python, html, css, javascript ...
效果 Ruby:
module RubyChina
class Topic
# this is comment
def digg(name)
puts "Digg for #{name} ..."
end
end
效果 HTML
<div class="box">
<a href="http://ruby-china.org">Ruby China</a>
</div>