🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
CodeMirror Blocks icon
Possibly abandoned Tested up to 6.5.15 #3 in Codemirror

CodeMirror Blocks

CodeMirror Blocks is useful for developers blog, tutorial site where to display formatted (highlighted) code of any program. It supports 100+ Programming, Scripting and MarkUp Language, with 56 Different Themes.

Active installs1K+1K+ tier
Downloads · 30d580▲ +64.3% vs prev. 30d
Rating5/541 reviews
Health score44/100Fair
All-time downloads51.5KSince Dec 2018
Support resolved—No recent threads
RequiresWP 6.0PHP 7.0+
Downloads · 7d183▲ +29.8% week over week
Our verdict

Use with caution

CodeMirror Blocks works, but test it on a staging site before relying on it in 2026. It runs on 1K+ sites, is rated 5/5 and was last updated 3 years ago, and scores 44/100 on our health check.

  • Loved by users — 5/5 from 41 reviews
  • Momentum — downloads up 64.3% vs the previous 30 days
  • No update in 2 years
  • Only tested up to WordPress 6.5 (latest is 7.1)

How does it stack up?

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

Daily downloads

163248Sep 4Oct 18Dec 2
Yesterday64
Daily average (1y)7
Peak day64Dec 2, 2026
Last 12 months2.7K

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

Rankings

Where CodeMirror Blocks stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
Codemirror #13 170 Best Codemirror plugins →
editor >100 10,000 Best editor plugins →
gutenberg >100 8,556 Best gutenberg plugins →
syntax highlighter #30 143 Best syntax highlighter plugins →

Version adoption

Share of active sites per release.

  • 2.084.6%
  • 1.215.4%

Rating breakdown

★★★★★★★★★★ 5 from 41 reviews

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

About CodeMirror Blocks

From the official readme · v2.0.3

Description

CodeMirror Blocks is useful for developers blog, tutorial site where to display formatted (highlighted) code of any program.
It supports 100+ Programming, Scripting and MarkUp Language, with 56 Different Themes.

The Code Block is dependent on a CodeMirror library.

Formatted Code Block is like (syntax highlighting feature) that displays source code, in different colors and fonts according to the category of terms. It is one strategy to improve the readability and context of the text; especially for code that spans several pages. The reader can easily ignore large sections of comments or code, depending on what they are looking for.

This plugin is just plug and play, no tedious configurations or hacks, just install, activate and start using block inserter.

Features

  • Control Panel Added on top of the Code Block.
    ** It displays language/filename.
    ** It also display three buttons, includes Run/Execute, FullScreen, Copy Code.
  • Web editor (Execution of HTML, CSS JavaScript block) With CodeMirror Block 1.1
  • Option Page for set default options
  • Highlight Active Line (now available on CodeMirror Block 1.1)
  • CodeMirror Block 1.1 now support Block align (Wide Width, Full Width) if your theme Supports.
  • Classic Editor Support (Partial)

  • Lightweight and fast

  • Secure code with using clear coding standards
  • Intuitive interface with many settings
  • Cross browser compatible (work smooth in any modern browser)
  • Works also on android mobile browser
  • Compatible with all Default WordPress themes (tested with Latest Twenty Twenty-Four)
    • Twenty Twenty-Four
    • Twenty Twenty-Three
    • Twenty Twenty-Two
    • Twenty Twenty-One
    • Twenty Twenty
  • Also Compatible with other third-party themes.

Key features include

  • Code syntax highlighting
  • Line number (On/Off) option
  • 56 Themes (all provided themes from CodeMirror)
  • 100+ Programming languages (all most provided languages from CodeMirror)
  • Programming language selection option
  • Loading CodeMirror files on pages only when needed

A list of supported themes:

  • 3024 day
  • 3024 night
  • Ambiance mobile
  • Ambiance
  • Base16 dark
  • Base16 light
  • Blackboard
  • Cobalt
  • Colorforth
  • Eclipse
  • Elegant
  • Erlang dark
  • Lesser dark
  • Liquibyte
  • MBO
  • MDN-like
  • Midnight
  • Monokai
  • Neat
  • Neo
  • Night
  • Paraiso dark
  • Paraiso light
  • Pastel on dark
  • Rubyblue
  • Reactjs.org Theme
  • Solarized
  • The matrix
  • Tomorrow night bright
  • Tomorrow night eighties
  • TTCN
  • Twilight
  • Vibrant ink
  • XQ dark
  • XQ light
  • Zenburn

Credits

  • This Plugin use CodeMirror library to highlight Code Blocks. CodeMirror is an open-source project shared under the MIT license.

Installation

Install “CodeMirror Blocks” just as you would any other WordPress Plugin.

Automatically via WordPress Admin Area:

  1. Log in to Admin Area of your WordPress website.
  2. Go to Plugins -> Add New.
  3. Find this plugin and click install.
  4. Activate this plugin through the Plugins tab.

Manually via FTP access:

  1. Download a copy (ZIP file) of this plugin from WordPress.org.
  2. Unzip the ZIP file.
  3. Upload the unzipped catalog to your website’s plugin directory (/wp-content/plugins/).
  4. Log in to Admin Area of your WordPress website.
  5. Activate this plugin through the Plugins tab.

More help installing plugins

Changelog

Fix Cross-Site Scripting issue. Code Execution functionality removed. jQuery Dependency removed. Now, it is written in pure JavaScript.

2.0.3

2.0.2

2.0.1

  • Fix: Minor bug

2.0.0

1.2.4

1.2.3

Full changelog on WordPress.org →

Screenshots

How to Add CodeBlock (Block Editor).
How to Add CodeBlock (Block Editor).
Paste CODE and Select appropriate Language to highlight CODE (Block Editor).
Paste CODE and Select appropriate Language to highlight CODE (Block Editor).
Change Theme from 50+ different themes, with live Preview (Block Editor).
Change Theme from 50+ different themes, with live Preview (Block Editor).
Toggle Line Number with one click (Block Editor).
Toggle Line Number with one click (Block Editor).

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 CodeMirror Blocks alternatives

All Codemirror plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 HTML Editor Syntax Highlighter HTML Editor Syntax Highlighter Syntax highlighting for the Classic editor's Text tab and the block editor's Code Editor… by Peter Mukhortov 60K+ ★★★★★★★★★★ 4.4 (110) 4 weeks ago 77
2 Custom Header Footer Scripts for Customizer Custom Header Footer Scripts for Customizer Add custom script to header and footer through WordPress Customizer. Edit your scripts with… by Rupok 1K+ ★★★★★★★★★★ 5 (2) 3 years ago 34
4 HTML Widget HTML Widget Adds a simple HTML widget with syntax highlighting for HTML, CSS and JS. by seothemes 300+ ★★★★★★★★★★ 4 (4) 9 years ago 30
5 CodeMirror for CodeEditor CodeMirror for CodeEditor Just another code syntaxhighligher for the theme and plugin editor with CodeMirror. by redcocker 40+ ★★★★★★★★★★ No reviews 15 years ago 24
6 codefence.io codefence.io codefence.io is an easy to embed editor and compiler for over 20 server-side programming… by benphelps 10+ ★★★★★★★★★★ No reviews 7 years ago 23
7 WP CodeMirror Themes WP CodeMirror Themes CodeMirror themes for the theme & plugin editor by TacoCode 10+ ★★★★★★★★★★ No reviews 5 years ago 23
8 Admin IDE Dark Mode Admin IDE Dark Mode A WordPress plugin to change Admin IDE colors. by rmstm <10 ★★★★★★★★★★ No reviews 3 years ago 21
9 Editor Tweaks for CodeMirror Editor Tweaks for CodeMirror Tweak every CodeMirror editor in WordPress with custom themes, fonts, and display options. by Marios Giannopoulos <10 ★★★★★★★★★★ No reviews 1 month ago 64
10 Rectus HTML Source Editor Rectus HTML Source Editor Adds HTML syntax highlighting, tag checks, folding, and indentation tools to the classic… by Rectus Inc. <10 ★★★★★★★★★★ No reviews 3 hours ago 64
11 Code Syntax Highlighter Code Syntax Highlighter A simple dynamic loading syntax highlighter.Supports 172 languages, 172 shortcodes and 55… by kartikaykanojia <10 ★★★★★★★★★★ No reviews 8 years ago 21

FAQ

CodeMirror Blocks: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is CodeMirror Blocks free?

Yes. CodeMirror Blocks is free to download and use from the official WordPress.org plugin directory.

Is CodeMirror Blocks safe to use in 2026?

CodeMirror Blocks works, but test it on a staging site before relying on it in 2026. It runs on 1K+ sites, is rated 5/5 and was last updated 3 years ago, and scores 44/100 on our health check.

How many websites use CodeMirror Blocks?

CodeMirror Blocks is active on 1K+ WordPress websites and has been downloaded 51,467 times since it launched in December 2018. It was downloaded 580 times in the last 30 days.

Does CodeMirror Blocks work with WordPress 7.1?

CodeMirror Blocks is officially tested up to WordPress 6.5.15, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does CodeMirror Blocks need?

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

When was CodeMirror Blocks last updated?

The latest version, 2.0.3, was released on April 9, 2024 (3 years ago).

Who makes CodeMirror Blocks?

CodeMirror Blocks is developed and maintained by Vicky Agravat.

What are the best alternatives to CodeMirror Blocks?

The most popular alternatives to CodeMirror Blocks are HTML Editor Syntax Highligh… (60K+ installs), Custom Header Footer Script… (1K+ installs) and HTML Widget (300+ 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