BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
Code Block Pro – Beautiful Syntax Highlighting icon
Actively maintained Tested with WP 7.1 #34 in block

Code Block Pro – Beautiful Syntax Highlighting

Code highlighting powered by the VS Code engine. Performance focused. No bloat.

Active installs10K+10K+ tier
Downloads · 30d1.6K▼ -1.3% vs prev. 30d
Rating4.8/550 reviews
Health score74/100Good
All-time downloads173.1KSince Aug 2022
Support resolved0 / 10% in last 2 months
RequiresWP 6.0PHP 7.0+
Downloads · 7d438▲ +16.5% week over week
Our verdict

Solid choice

Code Block Pro is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10K+ sites, is rated 4.8/5 and was last updated 1 month ago, and scores 74/100 on our health check.

  • Proven at scale on 10K+ active sites
  • Loved by users — 4.8/5 from 50 reviews
  • Tested with the latest WordPress (7.1)

How does it stack up?

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

Daily downloads

204161Jun 28Aug 11Sep 25
Yesterday65
Daily average (1y)68
Peak day2,381Apr 12, 2026
Last 12 months24.7K

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

Rankings

Where Code Block Pro stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
block #55 10,000 Best block plugins →
code #14 10,000 Best code plugins →
highlighter #5 226 Best highlighter plugins →
php #45 10,000 Best php plugins →
syntax #4 2,143 Best syntax plugins →

Version adoption

Share of active sites per release.

  • 1.2867.5%
  • 1.2719.1%
  • 1.2610.5%
  • Other2.9%

Rating breakdown

★★★★★★★★★★ 4.8 from 50 reviews

  • 5★92.0%
  • 4★2.0%
  • 3★4.0%
  • 2★0.00%
  • 1★2.0%

About Code Block Pro

From the official readme · v1.28.0

Description

Show off your beautiful code, don’t just display it! This block plugin provides you with a code editor that runs your code directly through the same rendering engine that is used by the popular VS Code editor. This block provides fast, native, code highlighting that renders perfectly in your favorite programming language using popular VS Code themes.

Beautiful syntax highlighting that makes sense.

To use, navigate to the default WordPress editor, and search for “Code Pro” or start typing “/code”.

Visit code-block-pro.com for a lifetime deal on the theme pack (this is a cosmetic-only upgrade).

Values

  • Performance first – Web vitals. Pre-rendering. Minimal asset loading.
  • Lightweight – No bloat. Simple functions. Clean, maintainable code.
  • Practical/useful – Focused on the user experience and presentation.
  • Beautiful – Your code should look great!

Star Code Block Pro on GitHub!

Features

  • Includes 25+ built-in themes to choose from.
  • Supports over 140 programming languages
  • 10+ Modern programming web fonts – locally hosted
  • Line numbers
  • Line highlighting (static and on hover)
  • Blur highlighting (with reveal on hover)
  • Header styles
  • Footer styles
  • Copy button
  • Native Gutenberg block
  • Tab or space indentation
  • Core functionality works in headless mode (see FAQ)
  • Converting from the default code block (and others)
  • Max height with scrollable section (optional expand button)

More info

Tips

  • Try combining line highlighting with the blur effect to add some extra depth, and focus on the important parts of the code without losing context
  • All settings are per block, but some settings are remembered when you add the next block
  • Add a link in the code footer (some footers support this, not all) that points to a demo
  • To achieve a flush look, remove padding under Extra Settings and select a theme with a background color matching your site theme

Included VS Code Themes

Get more themes at code-block-pro.com/themes

Theme Pack (Paid) Includes

  • Custom Dynamic Theme (advanced) read more
  • Andromeda (demo)
  • Ayu Dark (demo)
  • Ayu Mirage (demo)
  • Ayu Light (demo)
  • Cobalt2 (demo)
  • Night Owl (demo)
  • Night Owl Light (demo)
  • Noctis (demo)
  • Noctis Azureus (demo)
  • Noctis Bordo (demo)
  • Noctis Hibernus (demo)
  • Noctis Lilac (demo)
  • Noctis Lux (demo)
  • Noctis Minimus (demo)
  • Noctis Obscuro (demo)
  • Noctis Sereno (demo)
  • Noctis Uva (demo)
  • Noctis Viola (demo)
  • Palenight (demo)
  • Pico 8 (demo)
  • Shades of Purple (demo)
  • Shades of Purple Super Dark (demo)
  • Synthwave ’84 (demo)
  • Tokyo Night (demo)
  • Tokyo Night Storm (demo)
  • Tokyo Night Light (demo)
  • Winter is Coming (demo)
  • Winter is Coming Light (demo)
  • Winter is Coming Dark (demo)

Included Coding Languages

Installation

  1. Activate the plugin through the ‘Plugins’ screen in WordPress

Frequently asked questions

Font size is too small/big

Look under the “Styling” tab and turn on “Clamp Values”, which will compute the rem values relative to a 16px-24px base * the selected rem values. e.g. clamp(20px, 1.25rem, 30px).

How to use in headless

Themes are rendered inside the editor as you type or make changes, so the code block itself will work without CSS or JavaScript. However, the font loading, copy button, and line highlighting require a tiny bit of JavaScript to function. Additionally, line blur uses a tiny bit of CSS which you will need to load in yourself or implement your own. The code tokens and theme styles are inline though, so no need to manipulate the DOM.

Changelog

1.28.0 – 2026-04-11

  • Modernize tooling: swap ESLint/Prettier to Biome, Cypress/wp-env to Playwright + WP Playground.
  • Comprehensive Playwright test suite (49 tests across 9 spec files).
  • Update dependencies.
  • Update CI workflows to use node lts/*.
  • Tested up to WordPress 7.0.

1.27.7 – 2025-07-05

  • Fixes a bug where block error warning messages would only affect the first block.
  • Adds an update notice to users on the paid theme pack.

1.27.6 – 2025-06-29

  • Fixes a bug where shortcodes with attributes would not be properly escaped.

1.27.5 – 2025-06-21

  • Changes the default value for escaping wp shortcodes to true. Can’t see why anyone would want this any other way by default.
  • Prevents shortcodes from rendering in the copy button

1.27.4 – 2025-06-20

  • Prevents wp_texturize from affecting copied code snippets. You will see a block update for this change as I had to wrap the code in a pre tag.

1.27.3 – 2025-05-15

  • Prevents smart quotes, typographic dashes, and other non-ASCII characters from affecting copied code snippets.

Full changelog on WordPress.org →

Screenshots

Choose from more than 25 themes.
Choose from more than 25 themes.
Customize fonts, themes, and behavior.
Customize fonts, themes, and behavior.
Disable padding and inline the code for a fluent experience.
Disable padding and inline the code for a fluent experience.
Use highlighting and blur to focus on parts of the code.
Use highlighting and blur to focus on parts of the code.
ANSI support for rendering control sequences
ANSI support for rendering control sequences

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 Code Block Pro 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) 1 month ago 86
2 Breadcrumb NavXT Breadcrumb NavXT Adds breadcrumb navigation showing the visitor's path to their current location. by John Havlik 800K+ ★★★★★★★★★★ 4.6 (132) 4 weeks ago 81
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 (523) 1 month ago 92
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) 3 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) 4 weeks ago 88
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) 6 months ago 77
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) 4 weeks ago 90
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) 2 months ago 76
10 Genesis Blocks Genesis Blocks A collection of content blocks, sections, & full-page layouts for the block editor. by StudioPress 40K+ ★★★★★★★★★★ 3.7 (24) 1 month ago 65

FAQ

Code Block Pro: quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Sep 26, 2026

Is Code Block Pro free?

Yes. Code Block Pro is free to download and use from the official WordPress.org plugin directory.

Is Code Block Pro safe to use in 2026?

Code Block Pro is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10K+ sites, is rated 4.8/5 and was last updated 1 month ago, and scores 74/100 on our health check.

How many websites use Code Block Pro?

Code Block Pro is active on 10K+ WordPress websites and has been downloaded 173,056 times since it launched in August 2022. It was downloaded 1,618 times in the last 30 days.

Does Code Block Pro work with WordPress 7.1?

Yes. The developer has tested Code Block Pro up to WordPress 7.1.2, the latest release. It requires WordPress 6.0 or newer.

What PHP version does Code Block Pro need?

Code Block Pro requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Code Block Pro last updated?

The latest version, 1.28.0, was released on August 15, 2026 (1 month ago).

Who makes Code Block Pro?

Code Block Pro is developed and maintained by Kevin Batdorf.

What are the best alternatives to Code Block Pro?

The most popular alternatives to Code Block Pro are Spectra Legacy (1M+ installs), Breadcrumb NavXT (800K+ installs) and PDF Embedder (300K+ installs).

Powered by PageForge

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.