Title: Auto SyntaxHighlighter
Author: digihero
Published: <strong>2010 年 7 月 3 日</strong>
Last modified: 2012 年 5 月 7 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# Auto SyntaxHighlighter

 由 [digihero](https://profiles.wordpress.org/digihero/) 開發

[下載](https://downloads.wordpress.org/plugin/auto-syntaxhighlighter.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/auto-syntaxhighlighter/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/auto-syntaxhighlighter/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/auto-syntaxhighlighter/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/auto-syntaxhighlighter/#developers)

 [技術支援](https://wordpress.org/support/plugin/auto-syntaxhighlighter/)

## 外掛說明

Auto SyntaxHighlighter is a WordPress Code highlight plugin.

It’s used alexgorbatchev SyntaxHighlighter JavaScript package.

Autoload SyntaxHighlighter only requisite js files and display you code.

Github address: https://github.com/wkii/Auto-SyntaxHighlighter

Support languages see: SyntaxHighlighter Brushes.

Full Support for : AppleScript, ActionScript3, Bash/shell, C#, C++, CSS, Delphi,
Diff, Groovy, JavaScript, Java, Perl, PHP, Plain Text, Python, Ruby, Sass, Scala,
SQL, Visual Basic and XML/HTML…

It’s advantages:

 * Don’t write database;
 * Don’t need settings;
 * Deactivate plugin code can also display properly;
 * Code can switch visual editing mode or HTML mode;
 * With the w3c standards;
 * Insert code small tools;
 * Automatic and only loading requisite files;
 * Write code to support non-administrator

## 螢幕擷圖

[⌊example:
screenshot-1.png⌉⌊example:
screenshot-1.png⌉[

example: screenshot-1.png

[⌊Editor tool
screenshot-2.png⌉⌊Editor tool
screenshot-2.png⌉[

Editor tool screenshot-2.png

## 安裝方式

#### Tips

 1. Upload the entire `auto-syntaxhighlighter` folder to the `/wp-content/plugins/`
    directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 常見問題集

 * Use visual editor of “Auto SyntaxHighlighter” button to add your code.
 * In the HTML mode use `<pre></pre>`, such as `<pre class="brush:php">code here
   </pre>` or `<pre class="brush:js">code here</pre>`.

  Plugin Usage

 * Use visual editor of “Auto SyntaxHighlighter” button to add your code.
 * In the HTML mode use `<pre></pre>`, such as `<pre class="brush:php">code here
   </pre>` or `<pre class="brush:js">code here</pre>`.

For a list of supported languages (all widely used languages are supported).

Languages Supported:

 * AppleScript (applescript)
 * ActionScript3 (as3, actionscript3)
 * Bash/shell (bash, shell)
 * ColdFusion (cf, coldfusion)
 * C# (c-sharp, csharp)
 * C++ (cpp, c)
 * CSS (css)
 * Delphi (delphi, pas, pascal)
 * Diff (diff, patch)
 * Erlang (erl, erlang)
 * Groovy (groovy)
 * JavaScript (js, jscript, javascript)
 * Java (java)
 * JavaFX (jfx, javafx)
 * objc Objective-C/Cocoa
 * Perl (perl, pl)
 * PHP (php)
 * Plain Text (plain, text)
 * PowerShell (ps, powershell)
 * Python (py, python)
 * Ruby (rails, ror, ruby)
 * Sass (sass,scss)
 * Scala (scala)
 * SQL (sql)
 * Visual Basic (vb, vbnet)
 * XML (xml, xhtml, xslt, html, xhtml)

## 使用者評論

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

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-4075/)󠁿

 [doume](https://profiles.wordpress.org/doume/) 2016 年 12 月 29 日

Still works with WP4.7 + PHP 5.6. Great code.

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

### 󠀁[It doesn’t work on 4.6.1](https://wordpress.org/support/topic/it-doesnt-work-on-4-6-1/)󠁿

 [ninjin23](https://profiles.wordpress.org/ninjin23/) 2016 年 10 月 12 日

It doesn’t work on 4.6.1 and not is not managed nowadays.

 [ 閱讀全部 6 則使用者評論 ](https://wordpress.org/support/plugin/auto-syntaxhighlighter/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Auto SyntaxHighlighter〉的開發相關工作。

參與者

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

[將〈Auto SyntaxHighlighter〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/auto-syntaxhighlighter)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/auto-syntaxhighlighter/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/auto-syntaxhighlighter/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/auto-syntaxhighlighter/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/auto-syntaxhighlighter/)。

## 變更記錄

#### 2.3.3

Add script Lang: Objective-C/Cocoa. Thanks WillerZ.
 Demo: http://blog.nomzit.com/
2010/12/29/get-properties-right/

#### 2.3

Fix add script Lang: PowerShell,Erlang,ColdFusion. Thanks Mike.

#### 2.2

Compression and consolidation SyntaxHighlighter js and css files.
 To reduce the
file requests and save network bandwidth.

#### 2.1

This is a major upgrade

 * Support wordpress 3.2 + full-screen mode
 * Write code to support non-administrator
 * Fixed some action bug
 * Farewell php4 compatible

#### 2.0

Full screen mode support. Apple script support.

#### v1.3.2

Fix js for delphi bug.

#### v1.3.1

Fix code input box xml/html language name.

#### v1.3

Fix css style. Fix IE bug.

#### v1.2

upgrade SyntaxHighlighter Class library to 3.0.83.

Since the first version back in 2004, SyntaxHighlighter has always used Flash to
provide copy to clipboard functionality. At first it was Flash 8, then it was Flash
9 and now 10. It’s never been a crowd pleaser and a lot of requests over the years
demanded Flash to be removed.

Well, it’s finally happening — no more Flash. I think I’ve came up with user interface
to copy code to clipboard which is a lot more intuitive and almost too easy.

If you double click anywhere on the code, the entire code view is replaces with 
a pre-selected view from which users can copy with a simple Ctrl/Cmd-C. Clicking
anywhere else returns the view to the original state.

#### v1.1

Enhance regular match.

#### v1.0

Initial release.

## 中繼資料

 *  版本 **2.3.3**
 *  最後更新 **14 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 2.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.3.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/auto-syntaxhighlighter/)
 * 標籤:
 * [code](https://tw.wordpress.org/plugins/tags/code/)[highlighter](https://tw.wordpress.org/plugins/tags/highlighter/)
   [sourcecode](https://tw.wordpress.org/plugins/tags/sourcecode/)[syntax](https://tw.wordpress.org/plugins/tags/syntax/)
   [SyntaxHighlighter](https://tw.wordpress.org/plugins/tags/syntaxhighlighter/)
 *  [進階檢視](https://tw.wordpress.org/plugins/auto-syntaxhighlighter/advanced/)

## 評分

 4.3 星，滿分為 5 星

 *  [  5 個 5 星使用者評論     ](https://wordpress.org/support/plugin/auto-syntaxhighlighter/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/auto-syntaxhighlighter/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/auto-syntaxhighlighter/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/auto-syntaxhighlighter/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/auto-syntaxhighlighter/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/auto-syntaxhighlighter/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/auto-syntaxhighlighter/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/auto-syntaxhighlighter/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.akii.org/)