🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
WebberZone Code Block Highlighting icon
Manutenção ativamente Testado com WP 7.1 #18 in code block

WebberZone Code Block Highlighting

Syntax highlighting for the Gutenberg Code block — Prism.js, 21 themes, 40+ languages, plus an optional server-side highlighting mode.

Instalações ativas<10Novo
Downloads · 30d411▲ +17.4% vs prev. 30d
Classificação—0 comentários
Pontuação da saúde64/100Bom
Downloads de todos os tempos1.6KDesde maio de 2026
Suporte resolvido—Sem tópicos recentes
RequerWP 6.6Php 7.4+
Downloads · 7d238▲ 3.9× week over week
Nosso veredicto

Escolha sólida

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.

  • Desenvolvido ativamente — última atualização 1 dia atrás
  • Testado com as últimas WordPress (7.1)
  • Base de usuários pequenas (<10 instalações ativas)
  • Muito poucos comentários até agora

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

173451Aug 31Oct 14Nov 28
Ontem39
Média diária (1y)8
Dia de pico69Oct 11, 2026
Últimos 12 meses1.6K

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where WebberZone Code Block Highl… stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
code block >100 10,000 Best code block plugins →
code highlighting #76 835 Best code highlighting plugins →
Gutenberg >100 8,511 Os melhores plugins de Gutenberg →
prism #12 79 Best prism plugins →
syntax highlighting #86 365 Best syntax highlighting plugins →

About WebberZone Code Block Highlighting

From the official readme · v1.4.2

Descrição

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.

Por que usar este plugin?

  • Safe by design — Works as a filter on top of core/code and 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 URL
  • wzcbh_force_load_assets — Force Prism assets to load on every page

GDPR

WebberZone Code Block Highlighting does not collect personal data, set cookies, or communicate with any external services.

Contribute

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.

Traduções

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

Instalação

WordPress admin (recommended)

  1. Go to Plugins > Add New in your WordPress admin.
  2. Search for WebberZone Code Block Highlighting.
  3. Click Install Now, then Activate.

Instalação manual

  1. Download the plugin zip file.
  2. Extract it to your wp-content/plugins/ directory. You should end up with a webberzone-code-block-highlighting/ folder.
  3. 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.

Log de Changes

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 adds language-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 get language-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.jse on a plain-text block downloads as x.txt.

1.4.0

Release date: 22 November 2026
Release post: https://webberzone.com/announcements/code-block-highlighting-v1-4/

Adicionado

  • 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_selector filter 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 .kujo snippet 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_fallback filter; blocks larger than wzcbh_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_bytes to 0 now sends every server-side block with a language to the browser fallback instead of showing it as plain text. Also return false from wzcbh_server_prism_fallback to 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 &lt;, showed as the character they stand for in blocks that were not highlighted.
  • The download button kept an executable extension such as .exe or .bat from 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 new wzcbh_download_blocked_extensions.
  • A malformed lang attribute on a code element could stop Prism.js highlighting every code block on the page.
  • Code containing the text language-text was 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.

Registro de change completo em WordPress.org →

Capturas de tela

Block editor — language picker, line numbers toggle, title field, and more in the Inspector Controls sidebar.
Block editor — language picker, line numbers toggle, title field, and more in the…
Frontend code block with Prism.js syntax highlighting, line numbers, and toolbar.
Frontend code block with Prism.js syntax highlighting, line numbers, and toolbar.
Plugin settings page — choose a global colour scheme, default language, and more.
Plugin settings page — choose a global colour scheme, default language, and more.

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best WebberZone Code Block Highlig… alternatives

All code block plugins →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
1 Highlighting Code Block Highlighting Code Block Add code block with syntax highlighting using prism.js. (Available for Gutenberg and… by LOOS 10K+ ★★★★★★★★★★ 4.5 (20) 5 meses atrás 62
2 Code Block – share beautiful code snippets readers can copy Code Block – share beautiful code snippets readers can copy Create syntax-highlighted, copy-ready code snippets in Gutenberg with responsive layouts… por bplugins 200+ ★★★★★★★★★★ Sem comentários 2 semanas atrás 69
3 Code Block Copy Button Code Block Copy Button Add a customizable copy button to code blocks for fast, one-click copying. by tcstix 100+ ★★★★★★★★★★ Sem comentários 5 meses atrás 53
4 Easy Syntax Highlighter Easy Syntax Highlighter Modern, lightweight syntax highlighter for WordPress using Highlight.js by tiptinker 30+ ★★★★★★★★★★ Sem comentários 8 meses atrás 28
5 DBlocks CodePro DBlocks CodePro Advanced Custom HTML Block and Code Syntax Highlightering for sharing code snippets and… by DPlugins 10+ ★★★★★★★★★★ 5 (1) 1 mês atrás 64
6 Syntax Highlight Nano Syntax Highlight Nano Adds modern syntax highlighting to WordPress's standard code block using the robust… by Takashi Fujisaki 10+ ★★★★★★★★★★ Sem comentários 2 meses atrás 62
7 Plum Code Box Plum Code Box Plum Code Box makes it easy to insert and manage code blocks using the Chili javascript… by jtgraphic 10+ ★★★★★★★★★★ Sem comentários 16 anos atrás 23
8 Nahnu Code & API Block Nahnu Code & API Block A block suite for developer documentation: syntax-highlighted code snippets plus a full set… by Jaime Alnassim 10+ ★★★★★★★★★★ Sem comentários 2 semanas atrás 66
9 codefence.io codefence.io codefence.io is an easy to embed editor and compiler for over 20 server-side programming… by benphelps 10+ ★★★★★★★★★★ Sem comentários 7 anos atrás 23
10 LumiCode Syntax Highlighter LumiCode Syntax Highlighter Beautiful syntax highlighting for WordPress: 40+ languages, copy buttons, line numbers… by cr8vstacks 10+ ★★★★★★★★★★ Sem comentários 2 meses atrás 57

FAQ

WebberZone Code Block Highlighting: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: 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).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir