Title: APH Syntax Highlighter
Author: Agus Prawoto Hadi
Published: <strong>2016 年 8 月 21 日</strong>
Last modified: 2017 年 4 月 21 日

---

搜尋外掛

![](https://ps.w.org/aph-syntax-highlighter/assets/banner-772x250.png?rev=1479763)

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

![](https://ps.w.org/aph-syntax-highlighter/assets/icon-128x128.png?rev=1479764)

# APH Syntax Highlighter

 由 [Agus Prawoto Hadi](https://profiles.wordpress.org/agusph/) 開發

[下載](https://downloads.wordpress.org/plugin/aph-syntax-highlighter.1.2.2.zip)

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

 [技術支援](https://wordpress.org/support/plugin/aph-syntax-highlighter/)

## 外掛說明

Syntax Highlighter developed by Alex Gorbatchev that has been developed 10+ years
is a popular syntax highlighter. It is also widely used by a lot of blog and website.

Currently, it achieves version of 4, this version has significant change in the 
built method compared to the previous, this is, for some people, somewhat confused
and hard to do.

This plugin helps you to bring this code highlighter to your WordPress easily, forget
a headache builds. Provided with many features and user-friendly GUI, make it handy
and easy to use

** Features. **

 * Simple and easy to use
 * Full GUI, don’t need to hardcode the parameters
 * Custom container max-height. Useful when displaying long code.
 * Easy to add custom CSS. Useful for responsive design.
 * Easy to edit code that has been written in tinyMCE text editor (Screenshot 3)
 * Write and edit code in place. The textarea code editor supports the tab and back
   tab, so you can directly edit or write your code, rather than switch back to 
   your code editor.
 * Load script on demand, load javascript and CSS files of syntax highlighter only
   when needed.
 * Use [Syntax Highlighter 4](https://github.com/syntaxhighlighter/syntaxhighlighter)
   by Alex Gorbatchev
 * Ability to override global options and use individual options for each code block
 * Custom Font Size
 * Support TinyMCE Visual mode and Text Mode (Quick Tags), it also supports the 
   Quick tags used in the admin comment page (screenshot 5)
 * Use similar pattern with [APH Prism Highlighter](https://wordpress.org/plugins/aph-prism-highlighter/)
   and [Crayon Syntax Highlighter](https://wordpress.org/plugins/crayon-syntax-highlighter/)
   plugins, so your code will still work using those plugins
 * Language added: dark plain (console style) and light plain

### How To Use

After installing the plugin, go to the admin setting Settings > Syntax Highlighter
to configure the global setting including the highlighter languages you want to 
load, theme, etc…

In the TinyMCE menu (add or edit post or page), there is a new button that can be
used to pop up the code editor, simply copy-paste your code and fill in some options

This new button also can be found at the quick tags of comment editor in the Admin
Edit Comments page. This quick tag appears when you edit or reply a comment.

## 螢幕擷圖

 * [[
 * Admin Settings
 * [[
 * Code Editor
 * [[
 * Edit code that has been written in the TinyMCE editor
 * [[
 * Quick tags in the Text mode of TinyMCE editor
 * [[
 * Quick tags in the admin edit comments page

## 安裝方式

Install & activate the plugin. Modify some options in the settings page to suits
your need.

## 常見問題集

  Installation Instructions

Install & activate the plugin. Modify some options in the settings page to suits
your need.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

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

參與者

 *   [ Agus Prawoto Hadi ](https://profiles.wordpress.org/agusph/)

[將〈APH Syntax Highlighter〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/aph-syntax-highlighter)

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

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

## 變更記錄

#### 1.2.1 – April 22, 2017

 * Bug fixed: lighplain and darkplain is not responsive

#### 1.2.1 – March 19, 2017

 * Bug fixed: starting line number not working

#### 1.2 – March 18, 2017

 * Language added: dark plain (console style) and light plain
 * Bug fix

#### 1.1 – September 25, 2016

 * Ability to set max-height of container. Useful when displaying long code
 * Ability to add custom CSS. Useful for responsive design
 * Other improvements

#### 1.0

Initial Public Release

## 中繼資料

 *  版本 **1.2.2**
 *  最後更新 **9 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.7.33**
 *  語言
 * [English (US)](https://wordpress.org/plugins/aph-syntax-highlighter/)
 * 標籤:
 * [highlighter](https://tw.wordpress.org/plugins/tags/highlighter/)[syntax](https://tw.wordpress.org/plugins/tags/syntax/)
   [syntax highlighter](https://tw.wordpress.org/plugins/tags/syntax-highlighter/)
 *  [進階檢視](https://tw.wordpress.org/plugins/aph-syntax-highlighter/advanced/)

## 評分

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

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

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

## 參與者

 *   [ Agus Prawoto Hadi ](https://profiles.wordpress.org/agusph/)

## 技術支援

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

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