Title: Easy Google Syntax Highlighter
Author: nburlock
Published: <strong>2009 年 7 月 19 日</strong>
Last modified: 2009 年 10 月 22 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/easy-google-syntax-highlighter.svg)

# Easy Google Syntax Highlighter

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

[下载](https://downloads.wordpress.org/plugin/easy-google-syntax-highlighter.zip)

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

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

## 描述

This plugin is an implementation of the [Syntax Highlighter 2.1.364](http://alexgorbatchev.com/wiki/SyntaxHighlighter)
by Alex Gorbatchev with a front end to allow configuring all the global settings
that are available, such having the plugin automatically include languages to highlight,
thereby improving page loading performance.

#### Syntax Supported

ActionScript3, Bash/shell, C#, C++, CSS, Delphi, Diff,
 Groovy, JavaScript, Java,
JavaFX, Perl, PHP, Plain Text, PowerShell, Python, Ruby, Scala, SQL, Visual Basic,
XML

#### Themes

Default, Django, Emacs, FadeToGrey, Midnight, RDark

## 屏幕截图

 * [[
 * Simple Javascript example

## 安装

 1. Extract plugin into /wp-content/plugins directory.
 2. Activate the plugin.
 3. Specify your code snippets in your blog post using the [Usage Directions](http://alexgorbatchev.com/wiki/SyntaxHighlighter:Usage).

This example will highligh the source as Javascript:

    ```
    <pre class="brush:js">
        alert("Hello world");
    </pre>
    ```

## 常见问题

#### How do I get the best performance out of this plugin?

* Disable any syntax types that your blog doesn’t use, especially if you are only
using a few of the syntax brushes.
 * If your blog has a footer, you should enable
the option to put the brushes in the footer. * Also, if your blog has a footer, 
then Enable the automatic feature which will only include the language brushes that
are referenced on each page of your blog.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ nburlock ](https://profiles.wordpress.org/nburlock/)

[帮助将「Easy Google Syntax Highlighter」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/easy-google-syntax-highlighter)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2.1

 * Added a message warning against using Auto Brushes without Brushes in Footer
 * The reset button on Settings wasn’t resetting the Default Brush option
 * Changed the internal name for Auto Brushes to something less generic. Please 
   check Auto Brush settings after installing this update.

#### 1.2.0

 * Updated to version 2.1.364 of Alex Gorbachev’s highlighter script
 * New feature to use a default brush for tags that don’t specify a brush (thanks
   to gjulian for the suggestion)
 * Fixed a bug that stopped a custom tag being used when Auto Brushes was enabled
 * Removed redundant code

#### 1.1.1

 * Fixed incorrect path for script copy swf file

#### 1.1.0

 * Option to automatically include language brushes that are referenced on the blog
   page being viewed
 * Minor tweaks to allow this plugin to work with wp-minify

#### 1.0.0

 * First version

## 额外信息

 *  版本 **1.2.1**
 *  最后更新：**17 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.0.0 或更高版本 **
 *  已测试的最高版本为 **2.8.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/easy-google-syntax-highlighter/)
 * 标签
 * [blog](https://cn.wordpress.org/plugins/tags/blog/)[code](https://cn.wordpress.org/plugins/tags/code/)
   [google](https://cn.wordpress.org/plugins/tags/google/)[highlighter](https://cn.wordpress.org/plugins/tags/highlighter/)
   [syntax](https://cn.wordpress.org/plugins/tags/syntax/)
 *  [高级视图](https://cn.wordpress.org/plugins/easy-google-syntax-highlighter/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ nburlock ](https://profiles.wordpress.org/nburlock/)

## 支持

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

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