WebberZone Code Block Highlighting

Changelog

1.2.1

Release Date – 20 August 2026

  • Improvement: Setting defaults are now resolved from a single lightweight list instead of building every settings field, so reading an option early in the page load no longer risks a “translation loading triggered too early” notice.
  • Fix: Fixed settings on a multisite network reading another site’s values in the same request after a switch_to_blog() call.
  • Fix: Fixed the settings wizard silently dropping repeater field rows on save.

1.2.0

Release Date – 6 August 2026

Release post: https://webberzone.com/announcements/code-block-highlighting-v1-2-0/

  • New: File name tab. The file name set on a block now renders as an editor-style tab above the code block, coloured to match the active Prism theme. Works identically in client-side and server-side modes.
  • New: “File Name Style” setting to choose between the new tab and the previous toolbar label.
  • New: wzcbh_file_tab_html filter to customise the file name tab markup.
  • New: Download snippet button. A “Download” button now appears next to “Copy” in the code block toolbar, saving the snippet as a file named after the block’s file name, or snippet.{ext} derived from its language. Enabled by default; it can be turned off globally with the new “Download Snippet” setting, or per block from the “Download button” control in the block sidebar.
  • New: wzcbh_download_extensions filter to customise the language-to-file-extension map used for downloads.
  • Fix: File names saved by the older Code Syntax Block plugin (stored as a title attribute on the <pre>) are now displayed on the frontend without needing the post to be re-saved.
  • Fix: The block editor canvas no longer picked up background: window from the forced-colors media query in several themes, which left the editor code block unstyled.

1.1.0

Release Date – 10 June 2026

Release post: https://webberzone.com/announcements/code-block-highlighting-v1-1-0/

  • New: Server-side highlighting mode powered by highlight.php — syntax is pre-rendered on the server with no JavaScript required for highlighting.
  • New: All 21 Prism themes work identically in both client-side and server-side modes. Server mode now outputs Prism-compatible token classes and loads the same theme CSS, so switching modes produces no visual difference.
  • New: Added “Plain Text” language option to the language picker. Renders with Prism theme styling but no syntax highlighting.
  • Fix: Duplicate language-* class on <code> elements in client mode when the saved block HTML already carried the class.

1.0.0

Release Date – 3 May 2026

Release post: https://webberzone.com/announcements/code-block-highlighting-v1-0-0/

  • Initial release.
  • Extends core/code with Prism.js syntax highlighting — no block replacement, no block validation errors.
  • 40 supported languages with per-block language selection.
  • 21 built-in Prism themes selectable from the settings page.
  • Per-block controls: language, line numbers, start line, word wrap, title, highlight lines, and max height.
  • Expand/collapse toolbar button for blocks with a max-height set.
  • Smart asset loading — Prism CSS and JS only enqueued on pages containing code blocks.
  • Copy-to-clipboard and show-language toolbar buttons (configurable globally).
  • Global settings page for colour scheme, default language, and more.
  • Developer filters: wzcbh_languages, wzcbh_color_scheme_css_url, wzcbh_force_load_assets.
  • GDPR-friendly: no data collection, no external requests.

Plugin Website
Visit website

Author
Ajay
Version:
1.2.1
Last Updated
August 20, 2026
Requires
WordPress 6.6
Tested Up To
WordPress 7.1
Requires PHP
7.4

Share Post

Join our newsletter.

Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.