DBlocks CodePro

A free Gutenberg block with a real code editor: Emmet, light and dark themes, split preview, and syntax highlighting on the front end.

DBlocks CodePro split view with code and live preview in the block editor

A real code editor in the block editor

  • Built on Monaco, the editor behind VS Code: syntax highlighting and code completion while you type.
  • Emmet abbreviations for fast HTML and CSS.
  • Adjustable font size, and a language picker per block.
DBlocks CodePro expanding an Emmet abbreviation in the HTML code editor
DBlocks CodePro code editor in light and dark theme

Light and dark themes

  • Switch the editor between a light and a dark theme.
  • Pick the theme that matches your screen or your site.

Code, Preview or Split view

  • Write code and see the result side by side, or switch to code only or preview only.
  • Handy for small custom blocks, embeds and snippets.
Languages DBlocks CodePro can syntax highlight on the front end

Syntax highlighting for your readers

  • Show code in posts with highlighting: HTML, CSS, SCSS, JavaScript, PHP, TypeScript, Bash, Twig, YAML, JSON and plain text.
  • Made for tutorials, docs and tech blogs.

How to install

  1. In WordPress, go to Plugins → Add New Plugin.
  2. Search for DBlocks CodePro.
  3. Click Install Now, then Activate.

Or download it from WordPress.org.

Free

DBlocks CodePro is free on WordPress.org.