【发布时间】:2012-05-18 05:47:29
【问题描述】:
是否有任何库可以让我在<pre> 标签中显示代码并根据语言突出显示语法?我在想象这样的事情:
<pre class="python">
class MyClass:
"""A simple example class"""
i = 12345
def f(self):
return 'hello world'
</pre>
...pre.python 的 CSS 将适当地突出显示 Python 代码。
这样的东西存在吗?
【问题讨论】:
标签: python html css syntax-highlighting pre