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.
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 & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Syntax-highlighting Code Bl… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| block | >100 |
| code | #34 |
| code highlighting | #4 |
| code syntax | #4 |
| syntax highlight | #2 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 26 reviews
About Syntax-highlighting Code Block (with Se…
From the official readme · v1.5.2Description
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.
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.
Best Syntax-highlighting Code Bloc… alternatives
All block plugins →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


