WebberZone Code Block Highlighting extends the native WordPress Gutenberg core/code block with syntax highlighting, and is available for free on WordPress.org.
WordPress install (The easy way)
- Go to Plugins > Add New.
- Search for WebberZone Code Block Highlighting.
- Click Install Now, then Activate.
Manual install
- Download the latest release from WordPress.orgOpens in a new window or from GitHub ReleasesOpens in a new window.
- Unzip the archive and upload the
webberzone-code-block-highlightingfolder to/wp-content/plugins/. - Go to Plugins in your WordPress admin and activate WebberZone Code Block Highlighting.
Installing via WP CLI
On a Multisite network, use --activate-network to network-activate the plugin:
Using WebberZone Code Block Highlighting
After activation, open the block editor and add a Code block (or select an existing one). A Code Highlighting panel appears in the Inspector Controls sidebar on the right. Use that panel to choose the language, color scheme, and other display options for that block.
The plugin works as a filter on top of core/code — it never replaces the block. Code blocks are saved with the core block’s own markup, so if you deactivate the plugin, syntax highlighting is removed but all code blocks remain intact and valid. No content is lost. Blocks last saved with version 1.2.3 or earlier convert to this format when you update their post with the plugin active, or all at once from Convert Code Blocks in the banner at the top of Settings > Code Block Highlighting, or with wp wzcbh migrate-code-blocks. Back up your database first, because posts are updated in place without creating revisions.
