Title: 代码美化器
Author: Soli
Published: <strong>2011 年 5 月 13 日</strong>
Last modified: 2019 年 4 月 27 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# 代码美化器

 作者：[Soli](https://profiles.wordpress.org/allnull/)

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

 * [详情](https://cn.wordpress.org/plugins/wp-code-prettify/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-code-prettify/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-code-prettify/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-code-prettify/#developers)

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

## 描述

本插件使用Google代码美化器将文章中的代码片段以语法高亮显示。

#### 产品特点

 * 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?

本插件使用Google代码美化器将文章中的代码片段以语法高亮显示。

## 评价

![](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/)

## 贡献者及开发者

「代码美化器」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「代码美化器」翻译成简体中文。](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 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-code-prettify/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[google](https://cn.wordpress.org/plugins/tags/google/)
   [Highlight](https://cn.wordpress.org/plugins/tags/highlight/)[highlighter](https://cn.wordpress.org/plugins/tags/highlighter/)
   [prettify](https://cn.wordpress.org/plugins/tags/prettify/)
 *  [高级视图](https://cn.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/)