Plugin info

Total downloads: 2,176
Active installs: 100
Total reviews: 2
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 3/11/2022 (1391 days ago)
Added to WordPress: 3/8/2022 (3 years old)
Minimum WordPress version: 5.8
Tested up to WordPress version: 5.9.12
Minimum PHP version: 7.0

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 1391 days ago • 2 reviews

22/100

Is PrettyCode • Code syntax highlighting with CodeMirror abandoned?

Possibly abandoned (last update 1391 days ago).

Compatibility

Requires WordPress: 5.8
Tested up to: 5.9.12
Requires PHP: 7.0

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Spectra Gutenberg Blocks – Website Builder for the Block Editor
Rating 4.7/5 (1,804 reviews)Active installs 1,000,000
Breadcrumb NavXT
Rating 4.6/5 (132 reviews)Active installs 900,000
WP Go Maps (formerly WP Google Maps)
Rating 4.8/5 (2,988 reviews)Active installs 300,000
PDF Embedder
Rating 4.7/5 (447 reviews)Active installs 300,000
Otter Blocks – Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE
Rating 4.7/5 (238 reviews)Active installs 300,000
SureForms – Contact Form, Payment Form & Other Custom Form Builder
Rating 4.8/5 (53 reviews)Active installs 300,000

Description

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!

Installation

  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’

Frequently Asked Questions

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

Review feed

Guillaume TURPIN
3/8/2022

Parfait

Merci d'avoir transposé le bloc en standalone, il était vraiment cool dans AGB.
Benjamin Denis
3/8/2022

Code is poetry

Really useful, I love it!

Screenshots

Changelog

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