该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Smart Syntax

描述

Smart Syntax plugin automatically adds Google prettify syntax highlighting to the fenced code blocks in both content and comments.

It’s made with Jetpack markdown in mind, which brings the power of markdown extra to WordPress and gives you an easy to use markdown syntax for fenced code blocks.

For more information on usage and features, check out smartpixels.

安装

  1. Install Smart Syntax either via the WordPress.org plugin directory, or by uploading the files to your server
  2. Activate Smart Syntax through the ‘Plugins’ menu in WordPress.You will now see ‘Smart Syntax’ menu in admin sidebar.
  3. You can leave the default settings as it is or change according to your needs.
  4. Voila! Your code is now highlighted.

常见问题

I don’t use Jetpack markdown?

Jetpack markdown is not a necessity. You can add syntax highlighting for fenced code blocks in the following format

 <pre><code class="html"> echo 'Hello World!'; </code></pre>
How do I contact you ?

Please use the support forum here.

评价

阅读所有3条评价

贡献者及开发者

“Smart Syntax” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Smart Syntax”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

  • Initial release

  • 1.0.3
    Altering google CDN for prettify to reflect the changes