WebberZone Code Block Highlighting
Syntax highlighting for the Gutenberg Code block — Prism.js, 21 themes, 40+ languages, plus an optional server-side highlighting mode.
Solide Wahl
WebberZone Code Block Highlight… is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 1 day ago, and scores 64/100 on our health check.
- Aktiv entwickelt - letztes Update vor 1 Tag
- Getestet mit dem neuesten WordPress (7.1)
- Kleine Benutzerbasis (<10 aktive Installationen)
- Bisher sehr wenige Bewertungen
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where WebberZone Code Block Highl… stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| code block | >100 |
| code highlighting | #76 |
| Gutenberg | >100 |
| prism | #12 |
| syntax highlighting | #86 |
About WebberZone Code Block Highlighting
From the official readme · v1.4.2Beschreibung
WebberZone Code Block Highlighting is the easiest way to add syntax highlighting to your WordPress site. It extends the native Gutenberg core/code block with Prism.js highlighting in the browser, or optional server-side highlighting with highlight.php — no shortcodes, no block replacement, no risk of breaking existing posts.
Simply activate the plugin and your code blocks will instantly display beautiful, readable syntax highlighting on the frontend. Choose from 40+ programming languages and 21 colour themes, all controlled from the block editor’s Inspector Controls sidebar.
Two highlighting modes
Pick the rendering mode that best fits your site from the settings page:
- Client-side (default) — Prism.js highlights your code in the browser. Best for interactive features such as copy-to-clipboard and expand/collapse.
- Server-side (highlight.php) — Code is pre-highlighted on the server with highlight.php, so no Prism.js or any other JavaScript is loaded for highlighting, except on pages with a code block too large for the server, which Prism.js highlights in the browser. Ideal for performance, Core Web Vitals, AMP-style setups, and strict content-security policies.
Both modes use the same 21 Prism themes and produce visually identical output, so you can switch between client-side and server-side rendering at any time without changing how your code blocks look.
Why use this plugin?
- Safe by design — Works as a filter on top of
core/codeand saves blocks with core’s own markup. Existing posts are never invalidated. Deactivate the plugin and your blocks are still valid standard WordPress code blocks. - Zero configuration — Activate and start writing. No setup wizard, no shortcodes.
- No highlighting JavaScript in server mode — Server-side mode pre-renders syntax colours on the server. No Prism.js or any other JavaScript is enqueued for highlighting, except on pages with a block too large for the server.
- Smart asset loading — Theme CSS (and, in client mode, Prism JS) only load on pages that actually contain code blocks. Pages without code stay fast.
- Per-block controls — Set language, theme, line numbers, word wrap, title, highlighted lines, and max height individually for each block.
- Developer-friendly — Filters to add languages, override themes, and force asset loading.
Supported languages
42 languages including: Apache Config, Bash, C, C++, C#, CSS, Dart, Diff, Docker, F#, Go, GraphQL, Groovy, Haskell, HTML, Java, JavaScript, JSON, JSX, Kotlin, Kujo, Lua, Markdown, Nginx, Objective-C, Perl, PHP, PowerShell, Python, R, Ruby, Rust, Sass, Scala, SQL, Swift, TOML, TSX, TypeScript, Vim, XML, YAML. Use the wzcbh_languages filter to add or remove entries from the language picker.
Included themes (21)
A11y Dark, Coldark Cold (Light), Coldark Dark, Dracula, Duotone Dark, Duotone Light, GitHub (Light), Gruvbox Dark, Gruvbox Light, Lucario, Material Dark, Material Light, Night Owl, Nord, One Dark, One Light, Shades of Purple, Solarized Dark, Synthwave ’84, VS Code Dark+, Xonokai (Monokai).
Per-block features
- Language selector — Choose the programming language from the sidebar; applies the correct Prism grammar automatically.
- Line numbers — Toggle line numbers per block, with a configurable start line.
- File title / label — Add an optional filename or label displayed in the code block toolbar.
- Highlight lines — Specify lines or ranges (e.g.
1,3-5) to visually highlight using Prism’s line-highlight plugin. - Max height with expand/collapse — Set a maximum height in pixels; an expand/collapse toolbar button appears automatically.
- Word wrap — Toggle soft word wrapping per block.
Global settings
- Highlighting mode — client-side (Prism.js) or server-side (highlight.php)
- Default colour scheme (theme)
- Default language
- Default line numbers toggle and start value
- Default word wrap
- Copy-to-clipboard button
- Show language label in toolbar
- Font size
Developer filters
wzcbh_languages— Filter the language list array (slug => label)wzcbh_color_scheme_css_url— Override the Prism theme CSS URLwzcbh_force_load_assets— Force Prism assets to load on every page
DSGVO
WebberZone Code Block Highlighting does not collect personal data, set cookies, or communicate with any external services.
Beitragen
The plugin is open source and available on GitHub. Pull requests for bug fixes and new features are welcome. Please use the WordPress.org support forum for support and GitHub Issues for confirmed bug reports.
Übersetzungen
Help translate WebberZone Code Block Highlighting into your language on WordPress.org. See the Translator Handbook for guidance.
Other plugins by WebberZone
- Contextual Related Posts — Display fast, intelligent related posts to keep visitors on your site longer
- Top 10 — Track daily and total visits and display popular and trending posts
- WebberZone Snippetz — Manage custom HTML, CSS and JS snippets across your site
- Knowledge Base — Create a knowledge base or FAQ section on your WordPress site
- Better Search — Contextual search results sorted by relevance
- Auto-Close — Automatically close comments, pingbacks, trackbacks and manage revisions
- Popular Authors — Display popular authors in a WordPress widget
- Followed Posts — Show related posts based on what your visitors have already read
- WebberZone Link Warnings — Add accessible warnings for external links and target=”_blank” links
Installation
WordPress admin (recommended)
- Go to Plugins > Add New in your WordPress admin.
- Search for WebberZone Code Block Highlighting.
- Klicken Sie auf Jetzt installieren und dann Aktivieren.
Manuelle Installation
- Download the plugin zip file.
- Extract it to your
wp-content/plugins/directory. You should end up with awebberzone-code-block-highlighting/folder. - Go to Plugins in your WordPress admin and activate WebberZone Code Block Highlighting.
After activation, open any post or page in the block editor, add or select a Code block, and the Code Highlighting panel will appear in the Inspector Controls sidebar.
Änderungsprotokoll
Fixes color scheme styling for code blocks with no language in the block editor. Recommended if you edit posts with untagged code blocks.
1.4.2
Release date: 28 November 2026
Fixed
- In the block editor, code blocks with no language selected did not use the active color scheme, because editor styling is scoped to
language-*classes. The canvas preview now addslanguage-none, matching front-end output.
1.4.1
Release date: 26 November 2026
Fixed
- Code blocks with no language set did not receive the active colour scheme, because theme CSS is scoped to
language-*classes. They now getlanguage-none, same as Plain text blocks. - The per-request limits on server-side highlighting and language detection now also apply to feeds, the REST API, AJAX, admin and WP-CLI, not just front-end pages.
- The downloaded file name now uses the block language’s extension when the block’s file name ends in a different one. For example,
x.jseon a plain-text block downloads asx.txt.
1.4.0
Release date: 22 November 2026
Release post: https://webberzone.com/announcements/code-block-highlighting-v1-4/
Zusätzlich
- Dark mode color scheme. Pick a second theme for dark mode and it switches automatically, following the visitor’s device setting or your site’s dark mode switch. A block’s own color scheme still wins. Use the new
wzcbh_dark_mode_selectorfilter to set the selector from code. - Diff highlighting. A new Show as diff toggle colors lines starting with + and – as added and removed while keeping the block’s language highlighting, in both client-side and server-side modes. Diff is also available as a language for whole patches, and diff snippets download as
.diff. - Kujo language support in the language picker, with
.kujosnippet downloads, in both client-side and server-side modes. - In server-side mode, code blocks too large to highlight on the server now fall back to Prism.js highlighting in the browser instead of plain text. Prism.js loads only on pages that need it. Turn this off with the new
wzcbh_server_prism_fallbackfilter; blocks larger thanwzcbh_prism_fallback_max_bytes(default 512KB) stay plain text. - Per-page limit on the code sent to the browser fallback, filterable with the new
wzcbh_prism_fallback_page_budget(default 1MB; 0 turns it off). Blocks beyond it stay plain text. - Per-page limit on the amount of code highlighted on the server, so pages with many large code blocks no longer slow down. Blocks beyond the limit use the browser fallback. The limit and the fallback apply to front-end pages only; feeds, the REST API, AJAX, WP-CLI and admin screens keep the previous behavior. The limit is filterable with the new
wzcbh_server_highlight_request_budget(default 256KB; 0 turns it off). - Per-page limit on server-side language detection, so pages with many untagged code blocks no longer slow down when uncached. Blocks beyond the limit show as plain text and are detected on a later visit. Front-end pages only; filterable with the new
wzcbh_auto_detect_request_limit(default 25; 0 turns it off).
Changed
- Uninstalling the plugin now also removes cached language detection results and Convert Code Blocks results on every site.
- Settings passed to the frontend scripts are now encoded with stricter JSON escaping.
- On front-end pages, setting
wzcbh_server_highlight_max_bytesto 0 now sends every server-side block with a language to the browser fallback instead of showing it as plain text. Also returnfalsefromwzcbh_server_prism_fallbackto keep plain text.
Fixed
- A very large custom start line number caused a fatal error in server-side mode when line numbers were on. The start line is now limited to 1,000,000 and the max height to 100,000 pixels.
- In server-side mode, HTML entities typed as code text, such as
<, showed as the character they stand for in blocks that were not highlighted. - The download button kept an executable extension such as
.exeor.batfrom the block’s file name. Such an extension is now replaced with the language’s extension, and other file names download as before. The list is filterable with the newwzcbh_download_blocked_extensions. - A malformed
langattribute on a code element could stop Prism.js highlighting every code block on the page. - Code containing the text
language-textwas changed in blocks set to Plain text. - Crafted code block markup saved by a user allowed to post unfiltered HTML could turn part of one attribute into a new one, such as an event handler, when the plugin added its own attributes. The code block’s tags are now parsed per the HTML standard, and event handler attributes are removed from them.
- In server-side mode, a closing code tag inside an HTML comment or other raw text in the saved markup ended the code block early, and the rest of that markup was output unescaped.
- Converting code blocks from the Convert Code Blocks screen or with WP-CLI could turn malformed attribute markup into a different attribute. Such markup is now left as it is.
- Draft, private and password-protected synced patterns made the plugin’s styles and scripts load on pages that did not need them.
- Backslashes were stripped from settings values when they were saved from the settings page or setup wizard.
- A single-value setting that received an array, for example from a modified form submission, could trigger a PHP warning on save.
Earlier versions
For the changelog of earlier versions, please refer to the releases page on GitHub.
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best WebberZone Code Block Highlig… alternatives
All code block plugins →Fragen und Antworten
WebberZone Code Block Highlighting: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is WebberZone Code Block Highlight… free?
Yes. WebberZone Code Block Highlight… is free to download and use from the official WordPress.org plugin directory.
Is WebberZone Code Block Highlight… safe to use in 2026?
WebberZone Code Block Highlight… is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 1 day ago, and scores 64/100 on our health check.
How many websites use WebberZone Code Block Highlight…?
WebberZone Code Block Highlight… is active on <10 WordPress websites and has been downloaded 1,623 times since it launched in May 2026. It was downloaded 411 times in the last 30 days.
Does WebberZone Code Block Highlight… work with WordPress 7.1?
Yes. The developer has tested WebberZone Code Block Highlight… up to WordPress 7.2, the latest release. It requires WordPress 6.6 or newer.
What PHP version does WebberZone Code Block Highlight… need?
WebberZone Code Block Highlight… requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was WebberZone Code Block Highlight… last updated?
The latest version, 1.4.2, was released on November 28, 2026 (1 day ago).
Who makes WebberZone Code Block Highlight…?
WebberZone Code Block Highlight… is developed and maintained by Ajay.
What are the best alternatives to WebberZone Code Block Highlight…?
The most popular alternatives to WebberZone Code Block Highlight… are Highlighting Code Block (10K+ installs), Code Block (200+ installs) and Code Block Copy Button (100+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte



