🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Syntax-highlighting Code Block (with Server-side Rendering) icon
Maintained Tested up to 7.0.9

Syntax-highlighting Code Block (with Server-side Rendering)

Extending the Code block with syntax highlighting rendered on the server, thus being AMP-compatible and having faster frontend performance.

Active installs1K+1K+ tier
Downloads · 30d1.7K▲ +50% vs prev. 30d
Rating5/526 reviews
Health score66/100Good
All-time downloads48.5KSince Jul 2019
Support resolved—No recent threads
RequiresWP 6.6PHP 7.4+
Downloads · 7d452▲ +47.2% week over week
Our verdict

Solid choice

Syntax-highlighting Code Block… is a solid plugin choice in 2026, with a few things worth checking first. It runs on 1K+ sites, is rated 5/5 and was last updated 7 months ago, and scores 66/100 on our health check.

  • Loved by users — 5/5 from 26 reviews
  • Momentum — downloads up 50% vs the previous 30 days

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

336699Sep 4Oct 18Dec 2
Yesterday100
Daily average (1y)30
Peak day713May 19, 2026
Last 12 months10.8K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Syntax-highlighting Code Bl… stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
block >100 10,000 Best block plugins →
code #34 10,000 Best code plugins →
code highlighting #4 840 Best code highlighting plugins →
code syntax #3 1,789 Best code syntax plugins →
syntax highlight #2 321 Best syntax highlight plugins →

Version adoption

Share of active sites per release.

  • 1.593.6%
  • Other6.4%

Rating breakdown

★★★★★★★★★★ 5 from 26 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Syntax-highlighting Code Block (with Se…

From the official readme · v1.5.2

Description

This plugin extends the Code block in WordPress core to add syntax highlighting which is rendered on the server. Pre-existing Code blocks on a site are automatically extended to include syntax highlighting. Doing server-side syntax highlighting eliminates the need to enqueue any JavaScript on the frontend (e.g. Highlight.js or Prism.js) and this ensures there is no flash of unhighlighted code (FOUC?). Reducing script on the frontend improves frontend performance, and it also allows for the syntax highlighted code to appear properly in AMP pages as rendered by the official AMP plugin (see also ampproject/amp-wp#972) or when JavaScript is turned off in the browser.

This extended Code block uses language auto-detection to add syntax highlighting, but you can override the language in the block’s settings sidebar. (There is currently no syntax highlighting of the Code block in the editor, but see #8.) The plugin supports all programming languages that highlight.php supports (being a port of highlight.js). The Code block also is extended to support specifying lines to highlight which get marked up with mark elements (including in RSS feeds). There is also a checkbox for whether to show line numbers on the frontend (with the numbers being non-selectable). Lastly, given inconsistencies across themes regarding whether lines in a Code block should be wrapped, this plugin adds styling to force them to no-wrap by default, with a checkbox to opt in to wrapping when desired.

For advanced usage, please see the plugin wiki.

This plugin is developed on GitHub. See list of current issues with the plugin. Please feel free to file any additional issues or requests that you may come across. Pull requests are welcome. See contributing information.

Credits

This is a fork of Code Syntax Block by Marcus Kazmierczak (mkaz), which is also available on WordPress.org. Copyright (c) 2018 Marcus Kazmierczak. Licensed under GPL 2.0 or later.

highlight.php is released under the BSD 3-Clause License. Copyright © 2006-2013, Ivan Sagalaev (maniac@softwaremaniacs.org), highlight.js (original author). Copyright © 2013, Geert Bergman (geert@scrivo.nl), highlight.php

Changelog

For the plugin’s changelog, please see the Releases page on GitHub.

Full changelog on WordPress.org →

Screenshots

Code blocks can be added as normal, optionally overriding the auto-detected language. Also specify any lines to be highlighted, whether to show line numbers, and if the lines should wrap.
Code blocks can be added as normal, optionally overriding the auto-detected language…
The Code block renders with syntax highlighting on the frontend without any JavaScript enqueued. Stylesheets are added only when block is on the page.
The Code block renders with syntax highlighting on the frontend without any JavaScript…

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Syntax-highlighting Code Bloc… alternatives

All block plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Spectra Legacy – Gutenberg Blocks Spectra Legacy – Gutenberg Blocks Gutenberg blocks for existing Spectra websites. Maintained, stable, and fully supported —… by Brainstorm Force 1M+ ★★★★★★★★★★ 4.7 (1.9K) 2 weeks ago 85
2 Breadcrumb NavXT Breadcrumb NavXT Adds breadcrumb navigation showing the visitor's path to their current location. by John Havlik 700K+ ★★★★★★★★★★ 4.6 (132) 3 months ago 71
3 PDF Embedder – PDF Viewer & Embed PDF Files for WordPress PDF Embedder – PDF Viewer & Embed PDF Files for WordPress Embed PDF files in WordPress posts and pages with a responsive PDF viewer block, live Block… by Syed Balkhi 300K+ ★★★★★★★★★★ 4.7 (533) 4 months ago 86
4 Layout Grid Block Layout Grid Block A Gutenberg container block to let you align items consistently across a global grid. by Automattic 200K+ ★★★★★★★★★★ 4.7 (13) 3 years ago 43
5 Crowdsignal Forms Crowdsignal Forms The Crowdsignal Forms plugin allows you to create and manage polls right from within the… by Automattic 200K+ ★★★★★★★★★★ 5 (3) 2 months ago 73
6 Content Views – Post Grid & Filter (Shortcode, Blocks, Elementor Widgets) Content Views Easy to show posts, pages, custom posts in customizable grid, list, slider, accordion… by Content Views 100K+ ★★★★★★★★★★ 4.8 (333) 2 weeks ago 80
7 Email Address Encoder Email Address Encoder A lightweight plugin that protects email addresses from email-harvesting robots, by… by Till Krüss 100K+ ★★★★★★★★★★ 4.2 (160) 7 days ago 85
8 Simple Sitemap – Responsive HTML Sitemap for WordPress Simple Sitemap – Responsive HTML Sitemap for WordPress Build a responsive HTML sitemap in the block editor with live preview, flexible sorting… by David Gwyer 60K+ ★★★★★★★★★★ 3.9 (72) 2 months ago 86
9 Flexible Table Block Flexible Table Block Flexible Table Block is a custom block plugin for the WordPress block editor that allows… by Aki Hamano 40K+ ★★★★★★★★★★ 4.9 (34) 3 weeks ago 95
10 The Icon Block The Icon Block Easily add SVG icons and graphics to the WordPress block editor. by Nick Diego 40K+ ★★★★★★★★★★ 5 (30) 3 months ago 91

FAQ

Syntax-highlighting Code Block (wit…: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Syntax-highlighting Code Block… free?

Yes. Syntax-highlighting Code Block… is free to download and use from the official WordPress.org plugin directory.

Is Syntax-highlighting Code Block… safe to use in 2026?

Syntax-highlighting Code Block… is a solid plugin choice in 2026, with a few things worth checking first. It runs on 1K+ sites, is rated 5/5 and was last updated 7 months ago, and scores 66/100 on our health check.

How many websites use Syntax-highlighting Code Block…?

Syntax-highlighting Code Block… is active on 1K+ WordPress websites and has been downloaded 48,481 times since it launched in July 2019. It was downloaded 1,670 times in the last 30 days.

Does Syntax-highlighting Code Block… work with WordPress 7.1?

Syntax-highlighting Code Block… is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does Syntax-highlighting Code Block… need?

Syntax-highlighting Code Block… requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Syntax-highlighting Code Block… last updated?

The latest version, 1.5.2, was released on May 19, 2026 (7 months ago).

Who makes Syntax-highlighting Code Block…?

Syntax-highlighting Code Block… is developed and maintained by Weston Ruter.

What are the best alternatives to Syntax-highlighting Code Block…?

The most popular alternatives to Syntax-highlighting Code Block… are Spectra Legacy (1M+ installs), Breadcrumb NavXT (700K+ installs) and PDF Embedder (300K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open