Custom HTML Block Extension source code

By Aki Hamano, on WordPress.org since 2021. 7,000+ active installs.

Browse code Download zip

Custom HTML Block Extension turns the Custom HTML block into an advanced code editor powered by Monaco Editor, the code editor behind VS Code. Choose from 50 color themes to suit your taste. Below is its source code for every one of its 46 releases, what changed in the latest one, and how often it ships.

What changed in 5.0.0

Released Nov 5, 2026, 3 months after 4.1.0
  • Tested up to WordPress 7.2
  • Drop support for WordPress 7.0
  • Drop support for PHP 8.0 and 8.1
  • Feature: Use the advanced editor in the code editor of the post and site editors
  • Feature: Use the advanced editor in the “Edit as HTML” mode of all blocks
  • Feature: Highlight block delimiters and shortcodes

661 files changed since 4.1.0: 315 modified, 212 added, 134 removed.

And 651 more.

Compare 4.1.0 with 5.0.0

Release history

46 releases since May 2021
  1. 5.0.0 Nov 5, 2026 Tested up to WordPress 7.2
  2. 4.1.0 Jul 26, 2026 Tested up to WordPress 7.1
  3. 4.0.1 Jun 21, 2026 Fix: Undo clears all content right after the editor loads
  4. 4.0.0 Mar 3, 2026 Tested up to WordPress 7.0
  5. 3.9.0 Nov 9, 2025 Tested up to WordPress 6.9
Full Custom HTML Block Extension changelog with diffs

Source of 5.0.0

623 files
Browse all Custom HTML Block Extension 5.0.0 files Browse trunk