林,当我有值如何传递阶级属性和值使用python降价为我的Django项目降价语法
#/usr/bin/env python
print "this is converted to html code block"
输出
<pre><code>
#/usr/bin/env python
print "this is converted to html code block"
</code><pre>
现在我的问题是,如何我可以传递类属性和值给代码elem。 样品:
#i should be using some markdown syntax below
[class="python"]
#/usr/bin/env python
print "this is converted to html code block"
然后在这里
<pre><code class="python">
#/usr/bin/env python
print "this is converted to html code block"
</code><pre>
输出是可能的吗?如何?
您的权利Skilldrick,所以我只需要手工编写我的代码块 - 包这里面
和不通过4位否则将被转换为降价 – 2010-10-04 09:27:13这是正确的缩进它。我在Markdown写博客,所以我必须一直这样做。当你需要的时候可以下载到HTML是很好的(有点像从C下载到汇编程序)。 – Skilldrick 2010-10-04 09:47:29