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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/syntaxhighlighter-ckeditor-button/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/syntaxhighlighter-ckeditor-button/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/syntaxhighlighter-ckeditor-button/#installation)
 * [開發資訊](https://tw.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 code button in CKEditor⌉[

The code button in CKEditor

[⌊The user interface for adding code⌉⌊The user interface for adding code⌉[

The user interface for adding code

[⌊Syntaxhighlighter in action⌉⌊Syntaxhighlighter in action⌉[

Syntaxhighlighter in action

[⌊What it looks like when a custom editor style is defined within CKEditor's advanced
settings.⌉⌊What it looks like when a custom editor style is defined within CKEditor's
advanced settings.⌉[

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 年前**
 *  啟用安裝數 **70+**
 *  WordPress 版本需求 ** 3.3 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.9.40**
 *  語言
 * [English (US)](https://wordpress.org/plugins/syntaxhighlighter-ckeditor-button/)
 * 標籤:
 * [ckeditor](https://tw.wordpress.org/plugins/tags/ckeditor/)[SyntaxHighlighter](https://tw.wordpress.org/plugins/tags/syntaxhighlighter/)
 *  [進階檢視](https://tw.wordpress.org/plugins/syntaxhighlighter-ckeditor-button/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](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/)