Title: PrettyCode • Code syntax highlighting with CodeMirror
Author: maximebj
Published: <strong>8 Marzo 2022</strong>
Last modified: 13 Aprile 2026

---

Ricerca i plugin

![](https://ps.w.org/prettycode/assets/banner-772x250.png?rev=2690647)

![](https://ps.w.org/prettycode/assets/icon-256x256.png?rev=2690647)

# PrettyCode • Code syntax highlighting with CodeMirror

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

[Scarica](https://downloads.wordpress.org/plugin/prettycode.2.0.2.zip)

 * [Dettagli](https://it.wordpress.org/plugins/prettycode/#description)
 * [Recensioni](https://it.wordpress.org/plugins/prettycode/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/prettycode/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/prettycode/#developers)

 [Supporto](https://wordpress.org/support/plugin/prettycode/)

## Descrizione

The prettiest syntax highlighting block for the WordPress editor.
 Live edit your
code snippets in the admin with bracket matching, customize colors with more thant
50 themes (Base16, Monokai, Material, Zenburn, Hopscotch…). Compatible with major
languages: HTML, CSS, JS, JSX, Stylus, Sass, PHP, Python, C, C++, C#, Java, XML,
Shell, JSON, Go, Swift…

This block uses CodeMirror. You may have seen this block before on the Advanced 
Gutenberg Blocks plugins few years ago. It’s now an updated and standalone block.

### Third Party

This plugins uses some third party libraries:

 * WordPress create-block by gziolo – https://www.npmjs.com/package/@wordpress/create-
   block
 * CodeMirror – https://github.com/codemirror/CodeMirror
 * react-codemirror2 by scniro – https://github.com/scniro/react-codemirror2

A big thanks to their respective creators and maintainers!

## Screenshot

[[

[[

## Blocchi

Questo plugin fornisce 1 blocco.

 *   PrettyCode A code syntax highlighting block for your snippets of all major 
   languages.

## Installazione

 1. Upload the plugin files to the `/wp-content/plugins/prettycode` directory, or install
    the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Go to a post and click on ‘Add block’
 4. Search for ‘PrettyCode’

## FAQ

### Which languages are available?

All major language are available: HTML, CSS, JS, JSX, Stylus, Sass, PHP, Python,
C, C++, C#, Java, XML, Shell, JSON, Go, Swift…

### Can I add more languages ?

Yes, by using the filter `prettycode_languages_list`.

### Can I customize the appearance?

Sure! You have access to 50+ dark and light themes like Base16, Monokai, Material,
Zenburn, Hopscotch…

### Can I contribute?

Yep! The public repository is right here: https://github.com/maximebj/prettycode.
plugin

## Recensioni

![](https://secure.gravatar.com/avatar/0a8bc6cca8c45cc7c0b42f4526aed0a0eb0dfafb7332f0f83c0cf2899cdd0625?
s=60&d=retro&r=g)

### 󠀁[Parfait](https://wordpress.org/support/topic/parfait-335/)󠁿

 [Guillaume TURPIN](https://profiles.wordpress.org/guillaumeturpin/) 8 Marzo 2022

Merci d'avoir transposé le bloc en standalone, il était vraiment cool dans AGB.

![](https://secure.gravatar.com/avatar/168e9c9d51f35eb9e61d14ccdc76fe23b36d30abb1cff7606a12302554b5b585?
s=60&d=retro&r=g)

### 󠀁[Code is poetry](https://wordpress.org/support/topic/code-is-poetry-5/)󠁿

 [Benjamin Denis](https://profiles.wordpress.org/rainbowgeek/) 8 Marzo 2022

Really useful, I love it!

 [ Leggi tutte le recensioni di 2 ](https://wordpress.org/support/plugin/prettycode/reviews/)

## Contributi e sviluppo

“PrettyCode • Code syntax highlighting with CodeMirror” è un software open source.
Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di
seguito.

Collaboratori

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

“PrettyCode • Code syntax highlighting with CodeMirror” è stato tradotto in 1 lingua.
Grazie a [chi traduce](https://translate.wordpress.org/projects/wp-plugins/prettycode/contributors)
per il contributo.

[Traduci “PrettyCode • Code syntax highlighting with CodeMirror” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/prettycode)

### Ti interessa lo sviluppo?

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

## Changelog

#### 2.0.2

 * Fixed build

#### 2.0.1

 * Fixed build

#### 2.0

 * Upgraded to CodeMirror 6
 * Updated blockAPI version to 3
 * Fixed bugs

#### 1.0.7

 * Fixed code editor line height

#### 1.0.6

 * Added translation for JS files
 * Fixed a bug with PHP block

#### 1.0

 * Initial release

## Meta

 *  Versione **2.0.2**
 *  Ultimo aggiornamento **6 mesi fa**
 *  Installazioni attive **100+**
 *  Versione WordPress ** 5.8 o superiore **
 *  Testato fino alla versione **6.9.9**
 *  Versione PHP ** 7.0 o superiore **
 *  Lingue
 * [English (US)](https://wordpress.org/plugins/prettycode/) e [French (France)](https://fr.wordpress.org/plugins/prettycode/).
 *  [Traduci nella tua lingua](https://translate.wordpress.org/projects/wp-plugins/prettycode)
 * Tag
 * [block](https://it.wordpress.org/plugins/tags/block/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/prettycode/advanced/)

## Valutazioni

 5 su 5 stelle.

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

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

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/prettycode/reviews/)

## Collaboratori

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

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/prettycode/)