PrettyCode • Code syntax highlighting with CodeMirror
A simple block to highlight code with 20+ languages and 50+ themes, for the WordPress editor.
The facts
- Rating
- 5★ from 2
- Active installs
- 100+
- Price
- Free
- Last updated
- 13 Apr 2026
- Added
- Mar 2022
- Requires WP
- 5.8
- Tested up to
- WP 6.9.7
- Requires PHP
- 7.0
- Downloads
- 2,900
Our analysis
AI-assistedPrettyCode is a WordPress plugin designed for syntax highlighting in the editor. It allows you to live edit code snippets with features like bracket matching and customisable colours, offering over 50 themes. The plugin supports a variety of programming languages, making it suitable for developers and content creators who need to display code on their websites.
This plugin uses CodeMirror for its functionality and is a standalone block, previously part of the Advanced Gutenberg Blocks plugin. It is intended for users who want a visually appealing way to present code snippets within the WordPress environment.
Best for: This plugin suits developers and content creators who need to present code snippets on their WordPress sites.
What it does well
- ✓Free to use from the WordPress.org directory
- ✓Supports over 50 themes for customisation
- ✓Compatible with major programming languages
- ✓Utilises CodeMirror for enhanced code editing
- ✓Live editing features like bracket matching
Where it falls short
- •Limited information on additional features or support
- •No details on compatibility with specific themes or other plugins
Verdict
PrettyCode offers a straightforward solution for syntax highlighting in WordPress, particularly for users who value customisation and live editing capabilities.
From the developer
maximebj's own description of PrettyCode • Code syntax highlighting with CodeMirror, lightly tidied.
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!