Title: WP Prism Syntax Highlighter
Author: GuiTeK
Published: <strong>29 Agosto 2014</strong>
Last modified: 7 Settembre 2014

---

Ricerca i plugin

Questo plugin **non è stato testato con le ultime 3 versioni principali (major releases)
di WordPress**. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare
problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

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

# WP Prism Syntax Highlighter

 Di [GuiTeK](https://profiles.wordpress.org/guitek/)

[Scarica](https://downloads.wordpress.org/plugin/wp-prism-syntax-highlighter.1.0.5.zip)

 * [Dettagli](https://it.wordpress.org/plugins/wp-prism-syntax-highlighter/#description)
 * [Recensioni](https://it.wordpress.org/plugins/wp-prism-syntax-highlighter/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/wp-prism-syntax-highlighter/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/wp-prism-syntax-highlighter/#developers)

 [Supporto](https://wordpress.org/support/plugin/wp-prism-syntax-highlighter/)

## Descrizione

_WP Prism Syntax Highlighter_ enables you to use [Prism](http://prismjs.com) by 
[Lea Verou](http://lea.verou.me) in your WordPress blog.

> Prism is a lightweight, extensible syntax highlighter, built with modern web standards
> in mind.

 * It has an easy and convenient **code editor** integrated into the WordPress editor
   toolbar: you can insert code in just one click.
 * It requires **no configuration** at all, however you can still customize the 
   default settings in the plugin’s settings page.

It supports _all_ Prism features, namely:

 * Syntax highlighting (30+ languages)
 * Custom themes (6 official themes)
 * Plugins (7 official plugins: [Line Highlight](http://prismjs.com/plugins/line-highlight),
   [Line Numbers](http://prismjs.com/plugins/line-numbers), [Show Invisibles](http://prismjs.com/plugins/show-invisibles),
   [Autolinker](http://prismjs.com/plugins/autolinker), [WebPlatform Docs](http://prismjs.com/plugins/wpd),
   [File Highlight](http://prismjs.com/plugins/file-highlight), [Show Language](http://prismjs.com/plugins/show-language))

**NOTE: the plugin archive contains**

 * **_all_ languages definitions**
 * **_no_ plugin**
 * **_default_ theme**

It is recommended to use **only what you need** in order to keep the plugin the 
smallest possible.
 Please download your custom Prism from http://prismjs.com/download.
html and upload the files in:

 * your_plugin_directory/wp-prism-syntax-highlighter/css/
 * your_plugin_directory/wp-prism-syntax-highlighter/js/
    **Do NOT replace the original
   prism.css and prism.js, you will lose all your changes as they get overwritten
   when updating the plugin!**

**Help**
 Wondering how to install the plugin? Visit the _Installation_ page. Want
to see the plugin in action? Click _Screenshot_ above. Got any question? See the
_FAQ_.

**Contribute**
 Both Prism and this plugin are distributed under the MIT license
and are developed during our free time. Any help, even a bug report, is much appreciated!
To contribute:

 * Prism: https://github.com/LeaVerou/prism
 * Plugin: https://github.com/GuiTeK/wp-prism-syntax-highlighter

**Why another Prism plugin?**
 If you searched the plugin directory, you certainly
noticed that there are several Prism plugins for WordPress. Well, none of them satisfied
me: one plugin had no code editor, the other didn’t escape HTML tags, another didn’t
have the options I needed… so I made a new one to suit my needs.

## Screenshot

[⌊Integrated code editor⌉⌊Integrated code editor⌉[

Integrated code editor

[⌊Highlighted C++ code⌉⌊Highlighted C++ code⌉[

Highlighted C++ code

[⌊Plugin settings⌉⌊Plugin settings⌉[

Plugin settings

## Installazione

 1. Download the plugin archive from https://wordpress.org/plugins/wp-prism-syntax-
    highlighter and unzip it
 2. Upload the wp-prism-syntax-highlighter folder to your plugin directory (usually
    wp-content/plugins)
 3. Activate the plugin (_Plugins_ > _Installed Plugins_)
 4. If you get a warning from the plugin asking you to edit your theme, please do it
    as you might experience visual bugs (requires about 30 seconds of your time)
 5. Highlight some code!

## FAQ

**Q:** how can I install WP Prism Syntax Highlighter?
 **A:** please see the _Installation_
page.

**Q:** what is the warning I get when I enable WP Prism Syntax Highlighter?
 **A:**
some themes (like the _Twenty_ ones included into WordPress by default) already 
include some CSS to prettify code blocks. It might interfere with Prism and you 
might experience visual bugs. That’s why it’s recommended to comment out or remove
any CSS code related to pre or code tags.

**Q:** how do I disable line wrap?
 **A:** by default Prism does NOT wrap lines.
It’s certainly your theme’s fault (_Twenty_ themes are known to do that). Search
for line like `word-wrap: break-word;` and comment it out.

**Q:** what to do if I encouter a bug?
 **A:** please [open an issue](https://github.com/GuiTeK/wp-prism-syntax-highlighter/issues).
However, make sure the bug is related to the plugin itself and not to Prism. If 
you think it’s a Prism bug, please open an issue [here](https://github.com/LeaVerou/prism/issues).

## Recensioni

Non ci sono recensioni per questo plugin.

## Contributi e sviluppo

“WP Prism Syntax Highlighter” è un software open source. Le persone che hanno contribuito
allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

 *   [ GuiTeK ](https://profiles.wordpress.org/guitek/)

[Traduci “WP Prism Syntax Highlighter” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/wp-prism-syntax-highlighter)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/wp-prism-syntax-highlighter/)
segui il [repository SVN](https://plugins.svn.wordpress.org/wp-prism-syntax-highlighter/),
segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/wp-prism-syntax-highlighter/)
tramite [RSS](https://plugins.trac.wordpress.org/log/wp-prism-syntax-highlighter/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.5

 * Added custom settings for Prism CSS and JavaScript files, allowing the user to
   use its own version and thus preventing it from being overwritten when updating
   the plugin
 * Fixed HTML escaping
 * The editor plugin now adds a space after inline code, allowing the user to step
   out of the ` tag`
 * Updated default Prism to the latest version
 * Updated WordPress version to 4.0

#### 1.0.4

 * Updated license

#### 1.0.3

 * Updated readme.txt

#### 1.0.2

 * Updated readme.txt

#### 1.0.1

 * Updated readme.txt

#### 1.0.0

 * Initial release

## Meta

 *  Versione **1.0.5**
 *  Ultimo aggiornamento **12 anni fa**
 *  Installazioni attive **30+**
 *  Testato fino alla versione **4.0.38**
 *  Lingua
 * [English (US)](https://wordpress.org/plugins/wp-prism-syntax-highlighter/)
 * Tag
 * [Highlight](https://it.wordpress.org/plugins/tags/highlight/)[highlighter](https://it.wordpress.org/plugins/tags/highlighter/)
   [prism](https://it.wordpress.org/plugins/tags/prism/)[prismjs](https://it.wordpress.org/plugins/tags/prismjs/)
   [syntax](https://it.wordpress.org/plugins/tags/syntax/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/wp-prism-syntax-highlighter/advanced/)

## Valutazioni

 5 su 5 stelle.

 *  [  2 recensioni a 5-stelle     ](https://wordpress.org/support/plugin/wp-prism-syntax-highlighter/reviews/?filter=5)
 *  [  0 recensioni a 4-stelle     ](https://wordpress.org/support/plugin/wp-prism-syntax-highlighter/reviews/?filter=4)
 *  [  0 recensioni a 3-stelle     ](https://wordpress.org/support/plugin/wp-prism-syntax-highlighter/reviews/?filter=3)
 *  [  0 recensioni a 2-stelle     ](https://wordpress.org/support/plugin/wp-prism-syntax-highlighter/reviews/?filter=2)
 *  [  0 recensioni a 1-stelle     ](https://wordpress.org/support/plugin/wp-prism-syntax-highlighter/reviews/?filter=1)

[La tua recensione](https://wordpress.org/support/plugin/wp-prism-syntax-highlighter/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/wp-prism-syntax-highlighter/reviews/)

## Collaboratori

 *   [ GuiTeK ](https://profiles.wordpress.org/guitek/)

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/wp-prism-syntax-highlighter/)