Title: Google Syntax Highlighter for WordPress
Author: peterryan
Published: <strong>2007 年 8 月 14 日</strong>
Last modified: 2007 年 8 月 14 日

---

搜索插件

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

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

# Google Syntax Highlighter for WordPress

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

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

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

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

## 描述

This plugin easily integrates the [Google Syntax Highlighter](http://code.google.com/p/syntaxhighlighter)
by [Alex Gorbatchev](http://code.google.com/u/alex.gorbatchev) into WordPress.

#### Feature summary

 * 100% client side, no server dependency
 * Multiple languages support
 * Wide browser support
 * Very lightweight

#### Languages Supported

 * C++ (cpp, c, c++)
 * C# (c#, c-sharp, csharp)
 * CSS (css)
 * Delphi (delphi, pascal)
 * Java (java)
 * Java Script (js, jscript, javascript)
 * PHP (php)
 * Python (py, python)
 * Ruby (rb, ruby, rails, ror)
 * Sql (sql)
 * VB (vb, vb.net)
 * XML/HTML (xml, html, xhtml, xslt)

## 屏幕截图

 * [[
 * Simple Ruby 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://code.google.com/p/syntaxhighlighter/wiki/Usage)
    provided by the Google Syntax highlighter.

Here is an example to produce ruby syntax highlighting once the plugin is activated:

    ```
    <pre name="code" class"ruby">
    def my_ruby_snippet
      blog_post.should(be_highlighted)
    end
    </pre>
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 额外信息

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

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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