Title: Code Prettify Syntax Highlighter
Author: TrueFalse
Published: <strong>December 17, 2012</strong>
Last modified: December 17, 2012

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Code Prettify Syntax Highlighter

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

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

 * [Details](https://az-tr.wordpress.org/plugins/code-prettify-syntax-highlighter/#description)
 * [Reviews](https://az-tr.wordpress.org/plugins/code-prettify-syntax-highlighter/#reviews)
 *  [Installation](https://az-tr.wordpress.org/plugins/code-prettify-syntax-highlighter/#installation)
 * [Development](https://az-tr.wordpress.org/plugins/code-prettify-syntax-highlighter/#developers)

 [Support](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/)

## Description

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”> перед
сохранением записи.’

## Screenshots

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

## Installation

 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»’.

## FAQ

 * 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’.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Code Prettify Syntax Highlighter” is open source software. The following people
have contributed to this plugin.

Contributors

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

[Translate “Code Prettify Syntax Highlighter” into your language.](https://translate.wordpress.org/projects/wp-plugins/code-prettify-syntax-highlighter)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/code-prettify-syntax-highlighter/),
check out the [SVN repository](https://plugins.svn.wordpress.org/code-prettify-syntax-highlighter/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/code-prettify-syntax-highlighter/)
by [RSS](https://plugins.trac.wordpress.org/log/code-prettify-syntax-highlighter/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * The first version of the plugin.

## Meta

 *  Version **1.0**
 *  Last updated **13 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.5 or higher **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/code-prettify-syntax-highlighter/)
 * Tags
 * [code](https://az-tr.wordpress.org/plugins/tags/code/)[css](https://az-tr.wordpress.org/plugins/tags/css/)
   [highlighter](https://az-tr.wordpress.org/plugins/tags/highlighter/)[html](https://az-tr.wordpress.org/plugins/tags/html/)
   [javascript](https://az-tr.wordpress.org/plugins/tags/javascript/)
 *  [Advanced View](https://az-tr.wordpress.org/plugins/code-prettify-syntax-highlighter/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://www.sooource.net)