Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
我推荐 WP-Syntax。
从使用说明来看:
I recommend WP-Syntax.
From the usage notes:
许多网站使用 Google Code Prettify 对代码进行语法突出显示,并且人们开发了 WordPress 扩展,可以轻松地将 GCP 添加到博客中。以下是其中一个示例:
http://www.deanlee.cn /wordpress/google-code-prettify-for-wordpress/
Many sites use Google Code Prettify for syntax highlighting on code, and people have developed wordpress extensions that make it easy to add GCP to a blog. Here's an example of one:
http://www.deanlee.cn/wordpress/google-code-prettify-for-wordpress/
我推荐语法荧光笔进化。
http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
您可以使用 [php] 或 [css] 等短代码来包含您的源代码,当您查看帖子/页面时,它会很好地呈现。
I recommend Syntax Highlighter Evolved.
http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
You can use shortcodes like [php] or [css] to contain your source code, and it will be rendered nicely when you view the post/page.