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

---

Søg plugins

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

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

# Code Prettify Syntax Highlighter

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

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

 * [Detaljer](https://da.wordpress.org/plugins/code-prettify-syntax-highlighter/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/code-prettify-syntax-highlighter/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/code-prettify-syntax-highlighter/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/code-prettify-syntax-highlighter/#developers)

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

## Beskrivelse

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

## Skærmbilleder

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

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Code Prettify Syntax Highlighter” er open source-software. Følgende personer har
bidraget til dette plugin.

Bidragsydere

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

[Oversæt “Code Prettify Syntax Highlighter” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/code-prettify-syntax-highlighter)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/code-prettify-syntax-highlighter/),
tjek [SVN repository](https://plugins.svn.wordpress.org/code-prettify-syntax-highlighter/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/code-prettify-syntax-highlighter/)
via [RSS](https://plugins.trac.wordpress.org/log/code-prettify-syntax-highlighter/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.0

 * The first version of the plugin.

## Meta

 *  Version **1.0**
 *  Senest opdateret **13 år siden**
 *  Aktive installationer **10+**
 *  WordPress-version ** 3.5 eller højere **
 *  Testet op til **3.5.2**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/code-prettify-syntax-highlighter/)
 * Tags
 * [code](https://da.wordpress.org/plugins/tags/code/)[css](https://da.wordpress.org/plugins/tags/css/)
   [highlighter](https://da.wordpress.org/plugins/tags/highlighter/)[html](https://da.wordpress.org/plugins/tags/html/)
   [javascript](https://da.wordpress.org/plugins/tags/javascript/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/code-prettify-syntax-highlighter/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  1 5-stjernet anmeldelse     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](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)

[Se alle anmeldelser.](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

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

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](http://www.sooource.net)