Title: WP Code Prettify
Author: Soli
Published: <strong>2011 年 5 月 13 日</strong>
Last modified: 2019 年 4 月 27 日

---

搜尋外掛

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

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

# WP Code Prettify

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

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

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

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

## 外掛說明

This plugin enable syntax highlighting of code snippets in your post using Google
Code Prettify.

#### Features

 * More styles.
 * Colors can be customized.
 * The js/css files can be pre-loaded or post-loaded.
 * No js/css files are loaded if there is no code.

## 螢幕擷圖

[⌊The settings menu⌉⌊The settings menu⌉[

The settings menu

## 安裝方式

 1. Upload the full directory into your wp-content/plugins directory
 2. Activate the plugin at the plugin administration page
 3. Open the plugin configuration page, which is located under “Settings -> WP Code
    Prettify” and customize settings.

## 常見問題集

  What is it?

This plugin enable syntax highlighting of code snippets in your post using Google
Code Prettify.

## 使用者評論

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

### 󠀁[nice plugin](https://wordpress.org/support/topic/nice-plugin-1370/)󠁿

 [proodos](https://profiles.wordpress.org/proodos/) 2016 年 9 月 3 日

works on wordpress 4.4.1. thank you for solving the bug.

 [ 閱讀全部 3 則使用者評論 ](https://wordpress.org/support/plugin/wp-code-prettify/reviews/)

## 參與者及開發者

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

參與者

 *   [ Soli ](https://profiles.wordpress.org/allnull/)
 *   [ soli ](https://profiles.wordpress.org/soli/)

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

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

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

## 變更記錄

#### 0.2.8

 * Tested up to: 5.2

#### 0.2.7

 * fix security issues;

#### 0.2.6

 * fix “undefined index: head_custom”;

#### 0.2.5

 * custom HTML can be add into \<head>, so you can include some js files, such as
   lang-matlab.js;
 * using plugins_url() instead of content_url();
 * Tested up to: 4.4

#### 0.2.4

 * fix “Strict Standards” error ( Thanks bassjobsen [https://wordpress.org/support/profile/bassjobsen](https://wordpress.org/support/profile/bassjobsen));
 * Tested up to: 4.0

#### 0.2.3

 * fix js conflict with other plugins (Thanks the_champ [https://wordpress.org/support/profile/the_champ](https://wordpress.org/support/profile/the_champ))
 * Tested up to: 3.9.1

#### 0.2.2

 * Tested up to: 3.9.0

#### 0.2.1

 * Tested up to: 3.8.1

#### 0.2.0

 * fix links of js/css files via https

#### 0.1.9

 * update google code prettify to 4-Mar-2013 (fix css files)

#### 0.1.8

 * update google code prettify to 4-Mar-2013

#### 0.1.7

 * fix some warning.
 * improve options page

#### 0.1.6

 * Tested up to: 3.4.2

#### 0.1.5

 * fix “You do not have sufficient permissions to access this page.”.

#### 0.1.4

 * fix “Notice: Undefined index: wpcp_update_options”.
 * Tested up to: 3.4.1

#### 0.1.3

 * update version number.

#### 0.1.2

 * fix “You do not have sufficient permissions to access this page.”.

#### 0.1.1

 * update version number.

#### 0.1.0

 * first version.

## 中繼資料

 *  版本 **0.2.8**
 *  最後更新 **7 年前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 3.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.2.24**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-code-prettify/)
 * 標籤:
 * [code](https://tw.wordpress.org/plugins/tags/code/)[google](https://tw.wordpress.org/plugins/tags/google/)
   [Highlight](https://tw.wordpress.org/plugins/tags/highlight/)[highlighter](https://tw.wordpress.org/plugins/tags/highlighter/)
   [prettify](https://tw.wordpress.org/plugins/tags/prettify/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-code-prettify/advanced/)

## 評分

 4.7 星，滿分為 5 星

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

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

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

## 參與者

 *   [ Soli ](https://profiles.wordpress.org/allnull/)
 *   [ soli ](https://profiles.wordpress.org/soli/)

## 技術支援

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

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