A simple block to highlight code with 20+ languages and 50+ themes, for the WordPress editor.
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.
This plugins uses some third party libraries:
A big thanks to their respective creators and maintainers!
/wp-content/plugins/prettycode
directory, or install the plugin through the WordPress plugins screen directly.All major language are available: HTML, CSS, JS, JSX, Stylus, Sass, PHP, Python, C, C++, C#, Java, XML, Shell, JSON, Go, Swift…
Yes, by using the filter prettycode_languages_list
.
Sure! You have access to 50+ dark and light themes like Base16, Monokai, Material, Zenburn, Hopscotch…
Yep! The public repository is right here: https://github.com/maximebj/prettycode.plugin