PrettyCode

plugin banner

Code highlighting made simple, for the WordPress editor.

Author:maximebj (profile at wordpress.org)
WordPress version required:5.8
WordPress version tested:6.9.12
Plugin version:2.0.2
Added to WordPress repository:08-03-2022
Last updated:13-04-2026
Rating, %:100
Rated by:2
Plugin URI:
Total downloads:3 327
Active installs:100+
plugin download
Click to start download

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!


Screenshots
FAQ
ChangeLog