Title: Code Prettify Syntax Highlighter
Author: TrueFalse
Published: <strong>2012 年 12 月 17 日</strong>
Last modified: 2012 年 12 月 17 日

---

搜尋外掛

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

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

# Code Prettify Syntax Highlighter

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

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

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

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

## 外掛說明

English:

This plugin to select blocks of code takes advantage of JavaScript-library ‘google-
code-prettify’. If it is for his work simply insert frame <pre> tag with class ‘
prettyprint’.

*** Tip: In order to optimize the use of resources, try to use only one option –‘
Automatically replace the tags <pre> to <pre class=”prettyprint linenums”> before
saving post.’

Russian:

Данный плагин для выделения блоков кода использует возможности JavaScript-библиотеки‘
google-code-prettify’. При это для его работы достаточно просто обрамлять вставки
тегом <pre> с классом ‘prettyprint’.

***Совет: в целях оптимизации потребления ресурсов старайтесь использовать только
1 флажок – ‘Автоматически заменять <pre> на <pre class=”prettyprint linenums”> перед
сохранением записи.’

## 螢幕擷圖

 * [[
 * This frontend.
 * [[
 * This administration page.
 * [[
 * This post editing page.

## 安裝方式

 1. Unzip files.
 2. Upload ‘cpsh’ to the ‘/wp-content/plugins/’ directory.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.
 4. Go to your ‘Writing’.
 5. Go to your ‘Highlighting code with «google-code-prettify»’.

## 常見問題集

 * Syntax highlighting is not working?

Try disabling JQuery in your theme. Or comment the 33rd line of code plugin: wp_enqueue_script(‘
jquery’);

 * How do I block a themed code?

Specify the path to an arbitrary CSS file in the plugin settings. Examples of these,
see the catalog ‘http://example.com/wordpress/wp-content/plugins/cpsh/google-code-
prettify/prettify.css’.

## 使用者評論

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

## 參與者及開發者

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

參與者

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

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

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

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

## 變更記錄

#### 1.0

 * The first version of the plugin.

## 中繼資料

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

## 評分

 5 星，滿分為 5 星

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

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

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

## 參與者

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

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](http://www.sooource.net)