跳到内容

PrettyCode • Code syntax highlighting with CodeMirror

v2.0.2

maximebj · 2022年3月8日 上架

A simple block to highlight code with 20+ languages and 50+ themes, for the WordPress editor.

正在使用
100+
评分
5.0 / 5
累计下载
3,305
最近更新
2026年4月13日
2 条评价需要 WordPress 5.8+已测试到 6.9.12PHP 7.0+

贡献者

截图

PrettyCode • Code syntax highlighting with CodeMirror
PrettyCode • Code syntax highlighting with CodeMirror

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!

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums