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

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/code-prettify-syntax-highlighter/#description)
 * [评价](https://cn.wordpress.org/plugins/code-prettify-syntax-highlighter/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/code-prettify-syntax-highlighter/#installation)
 * [开发进展](https://cn.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 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/code-prettify-syntax-highlighter/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[css](https://cn.wordpress.org/plugins/tags/css/)
   [highlighter](https://cn.wordpress.org/plugins/tags/highlighter/)[html](https://cn.wordpress.org/plugins/tags/html/)
   [javascript](https://cn.wordpress.org/plugins/tags/javascript/)
 *  [高级视图](https://cn.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)