Title: Smart Syntax
Author: Smartpixels
Published: <strong>2014 年 6 月 18 日</strong>
Last modified: 2016 年 9 月 27 日

---

搜索插件

![](https://ps.w.org/smart-syntax/assets/banner-772x250.png?rev=934225)

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

![](https://ps.w.org/smart-syntax/assets/icon.svg?rev=979555)

# Smart Syntax

 作者：[Smartpixels](https://profiles.wordpress.org/smartpixels/)

[下载](https://downloads.wordpress.org/plugin/smart-syntax.1.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/smart-syntax/#description)
 * [评价](https://cn.wordpress.org/plugins/smart-syntax/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/smart-syntax/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/smart-syntax/#developers)

 [支持](https://wordpress.org/support/plugin/smart-syntax/)

## 描述

[Smart Syntax](http://www.smartpixels.net/?post_type=products&p=190) plugin automatically
adds Google prettify syntax highlighting to the fenced code blocks in both content
and comments.

It’s made with [Jetpack](http://jetpack.me/) 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](http://www.smartpixels.net/?post_type=products&p=190).

## 安装

 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

    ```
     &lt;pre&gt;&lt;code class=&quot;html&quot;&gt; echo 'Hello World!'; &lt;/code&gt;&lt;/pre&gt;
    ```

  How do I contact you ?

Please use the support forum here.

## 评价

![](https://secure.gravatar.com/avatar/2a6474b3e5499caf15178b9c30d96f121ce845ba0847020ec226d9a918d364d1?
s=60&d=retro&r=g)

### 󠀁[max-height: 250px; is not necessary.](https://wordpress.org/support/topic/max-height-250px-is-not-necessary/)󠁿

 [matsubobo](https://profiles.wordpress.org/matsubobo/) 2016 年 9 月 3 日 1 回复

I want max-height: 250px; css removed.

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/smart-syntax/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Smartpixels ](https://profiles.wordpress.org/smartpixels/)
 *   [ Arul ](https://profiles.wordpress.org/arulpr/)

[帮助将「Smart Syntax」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/smart-syntax)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/smart-syntax/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/smart-syntax/)，或通过[RSS](https://plugins.trac.wordpress.org/log/smart-syntax/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/smart-syntax/)。

## 更新日志

 * Initial release
 * 1.0.3
    Altering google CDN for prettify to reflect the changes

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **4.6.30**
 *  语言
 * [English (US)](https://wordpress.org/plugins/smart-syntax/)
 * 标签
 * [Code Blocks](https://cn.wordpress.org/plugins/tags/code-blocks/)[markdown](https://cn.wordpress.org/plugins/tags/markdown/)
   [syntax highlighter](https://cn.wordpress.org/plugins/tags/syntax-highlighter/)
 *  [高级视图](https://cn.wordpress.org/plugins/smart-syntax/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/smart-syntax/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/smart-syntax/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/smart-syntax/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/smart-syntax/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/smart-syntax/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/smart-syntax/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/smart-syntax/reviews/)

## 贡献者

 *   [ Smartpixels ](https://profiles.wordpress.org/smartpixels/)
 *   [ Arul ](https://profiles.wordpress.org/arulpr/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/smart-syntax/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.smartpixels.net)