Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一个 python 模块,它可以让我从用任何流行语言编写的代码中生成“语法突出显示”的 HTML 代码。
类似于 stackoverflow 对代码标签所做的事情。
你可能想要pygments。
它突出显示了最流行的语言和 HTML、RDF、LaTeX 等的输出。