BACK TO DIRECTORY

PrettyCode • Code syntax highlighting with CodeMirror

by maximebj

5.0
(2 ratings)

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

Plugin Details

Active Installs
100
Total Downloads
2,974
Version
2.0.2
Requires WP
5.8
Requires PHP
7.0
Tested Up To
6.9.7
Added
2022-03-08
Last Updated
2026-04-13 1:05pm GMT

Ratings

5
2
4
0
3
0
2
0
1
0

Tags