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

---

Sök tillägg

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

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

# Code Prettify Syntax Highlighter

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

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

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

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

## Beskrivning

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ärmdumpar

[⌊This frontend.⌉⌊This frontend.⌉[

This frontend.

[⌊This administration page.⌉⌊This administration page.⌉[

This administration page.

[⌊This post editing page.⌉⌊This post editing 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»’.

## Vanliga frågor

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

## Recensioner

Detta tillägg har inga recensioner.

## Bidragsgivare och utvecklare

”Code Prettify Syntax Highlighter” är programvara med öppen källkod. Följande personer
har bidragit till detta tillägg.

Bidragande personer

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

[Översätt ”Code Prettify Syntax Highlighter” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/code-prettify-syntax-highlighter)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/code-prettify-syntax-highlighter/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/code-prettify-syntax-highlighter/)
eller prenumerera på [utvecklarloggen](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).

## Ändringslogg

#### 1.0

 * The first version of the plugin.

## Meta

 *  Version **1.0**
 *  Senast uppdaterat **14 år sedan**
 *  Aktiva installationer **10+**
 *  WordPress-version ** 3.5 eller senare **
 *  Testat upp till **3.5.2**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/code-prettify-syntax-highlighter/)
 * Etiketter
 * [code](https://sv.wordpress.org/plugins/tags/code/)[css](https://sv.wordpress.org/plugins/tags/css/)
   [highlighter](https://sv.wordpress.org/plugins/tags/highlighter/)[html](https://sv.wordpress.org/plugins/tags/html/)
   [javascript](https://sv.wordpress.org/plugins/tags/javascript/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/code-prettify-syntax-highlighter/advanced/)

## Betyg

 5 av 5 stjärnor.

 *  [  1 5-stjärnig recension     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=4)
 *  [  0 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/?filter=2)
 *  [  0 1-stjärniga recensioner     ](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)

[Visa alla recensioner](https://wordpress.org/support/plugin/code-prettify-syntax-highlighter/reviews/)

## Bidragande personer

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

## Support

Har du något att säga? Behöver du hjälp?

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

## Donera

Skulle du vilja bidra till utvecklingen av detta tillägg?

 [ Donera till det här tillägget ](http://www.sooource.net)