Title: SyntaxHighlighter CKEditor Button
Author: solagirl
Published: <strong>2012 年 9 月 7 日</strong>
Last modified: 2014 年 4 月 21 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/syntaxhighlighter-ckeditor-button.svg)

# SyntaxHighlighter CKEditor Button

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

[下载](https://downloads.wordpress.org/plugin/syntaxhighlighter-ckeditor-button.1.2.2.zip)

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

 [支持](https://wordpress.org/support/plugin/syntaxhighlighter-ckeditor-button/)

## 描述

This plugin provides an additional code button for WordPress CKEditor so that you
can use syntaxhighlighter with CKEditor.

[CKEditor For WordPress](https://wordpress.org/extend/plugins/ckeditor-for-wordpress/)
plugin replaces the default WordPress editor with CKEditor, while [Auto SyntaxHighlighter](https://wordpress.org/extend/plugins/auto-syntaxhighlighter/)
plugin intergrates alexgorbatchev SyntaxHighlighter JavaScript package into WordPress
but doesn’t provide a code button for CKEditor. This is why I created the plugin.

If you opt not to install Auto SyntaxHighlighter plugin, then your code will simply
be wrapped with pre tag.

Auto SyntaxHighlighter is not the only choice, there are plenty of plugins out there
that integrate Alex Gorbatchev’s SyntaxHighlighter into WordPress, choose as you
like.

Note: If you encounter any problem after upgrading please clear your browser’s cache.

## 屏幕截图

 * [[
 * The code button in CKEditor
 * [[
 * The user interface for adding code
 * [[
 * Syntaxhighlighter in action
 * [[
 * What it looks like when a custom editor style is defined within CKEditor’s advanced
   settings.

## 安装

 1. Upload this plugin to the ‘/wp-content/plugins/’ directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Make sure you have installed and activated CKEditor For WordPress and Auto SyntaxHighlighter
    plugin.
 4. To give the pre tag a special style in the visual editor, go to “CKEditor->Advanced
    Settings”, set “Editor CSS” to be Define css, set “CSS path” to be **http://yourdomain.
    com/wp-content/plugins/syntaxhighlighter-ckeditor-button/ckeditor.css****. Please
    replace ****yourdomain.com** with the real path of your “WordPress Address” defined
    in “Setings->General”.
 5. Save the settings and enjoy.

Note: If you encounter any problem after upgrading please clear your browser’s cache.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「SyntaxHighlighter CKEditor Button」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/syntaxhighlighter-ckeditor-button)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2.2

 * Put all ckeditor’s default style into ckeditor.css

#### 1.2.1

 * Make it compatible with the latest CKEditor For WordPress 4.0 plugin
 * Code button is moved to the insert toolbar

#### 1.2

 * Compatible with CKEditor For WordPress 4.0 and WordPress 3.5
 * Fix a bug when deactivating the plugin.

#### 1.1

 * Imporove the admin notification method, using wp pointer
 * Automatically remove the code button from ckeditor’s settings upon deactivation.

## 额外信息

 *  版本 **1.2.2**
 *  最后更新：**12 年前**
 *  活跃安装数量 **80+**
 *  WordPress 版本 ** 3.3 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/syntaxhighlighter-ckeditor-button/)
 * 标签
 * [ckeditor](https://cn.wordpress.org/plugins/tags/ckeditor/)[SyntaxHighlighter](https://cn.wordpress.org/plugins/tags/syntaxhighlighter/)
 *  [高级视图](https://cn.wordpress.org/plugins/syntaxhighlighter-ckeditor-button/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/syntaxhighlighter-ckeditor-button/reviews/#new-post)

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

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/syntaxhighlighter-ckeditor-button/)