🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
CodeColorer icon
Actively maintained Tested with WP 7.1 #20 in code

CodeColorer

Syntax highlighting for code snippets in posts, comments, and RSS, with inline code, themes, and line numbers.

Active installs1K+1K+ tier
Downloads · 30d1.5K▲ +157.3% vs prev. 30d
Rating4.9/511 reviews
Health score82/100Excellent
All-time downloads129.9KSince Apr 2007
Support resolved—No recent threads
RequiresWP 4.0PHP 7.0+
Downloads · 7d439▼ -38.1% week over week
Our verdict

Safe pick

Yes — CodeColorer is a safe, well-maintained plugin to use in 2026. It runs on 1K+ sites, is rated 4.9/5 and was last updated 1 week ago, and scores 82/100 on our health check.

  • Actively developed — last update 1 week ago
  • Tested with the latest WordPress (7.1)
  • Momentum — downloads up 157.3% vs the previous 30 days

How does it stack up?

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

Daily downloads

112225337Sep 4Oct 18Dec 2
Yesterday72
Daily average (1y)17
Peak day450Nov 24, 2026
Last 12 months6K

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

Rankings

Where CodeColorer stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
code >100 10,000 Best code plugins →
comments >100 10,000 Best comments plugins →
highlighting #27 1,131 Best highlighting plugins →
snippet #54 3,050 Best snippet plugins →
syntax #37 2,362 Best syntax plugins →

Version adoption

Share of active sites per release.

  • 0.1244.4%
  • 0.928.7%
  • 0.1016.6%
  • 0.1110.2%

Rating breakdown

★★★★★★★★★★ 4.9 from 11 reviews

  • 5★90.9%
  • 4★9.1%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About CodeColorer

From the official readme · v0.12.1

Description

CodeColorer lets you insert syntax-highlighted code snippets into posts, comments, and feeds.

CodeColorer currently bundles GeSHi 1.0.9.0 from the upstream 1.0.x line, with a small set of project-local maintenance patches for current PHP and WordPress compatibility.

Plugin based on GeSHi library, which supports most languages. CodeColorer has various nice features:

  • syntax highlighting in RSS feeds
  • syntax highlighting of a single line of code (inline)
  • syntax highlighting of code in comments
  • line numbers
  • automatic links to the documentation inserting
  • code block intelligent scroll detection (short code would have a short block, for a long one the block height would be fixed and a scrollbar would appear)
  • predefined color themes (Slush & Poppies, Blackboard, Dawn, Mac Classic, Twitlight, Vibrant Ink, Railscasts, Solarized Light, Solarized Dark)
  • syntax colors customization in CSS file
  • code protect from mangling by WordPress (for example, quotes, double-dashes, and others would look just right as you entered)

Support

If you have any suggestions, found a bug, wanted to contribute a translation to your language, or just wanted to say “thank you”, feel free to email me kpumuk@kpumuk.info. I will try my best to answer you.

If you want to contribute your code, see the Development section under the Other Notes tab.

Supported languages

Here is the list of languages supported by CodeColorer: 4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, aimms, algol68, apache, applescript, apt_sources, arm, asm, asp, asymptote, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, batch, bf, biblatex, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, c_winapi, caddcl, cadlisp, ceylon, cfdg, cfm, chaiscript, chapel, cil, clojure, cmake, cobol, coffeescript, cpp-qt, cpp-winapi, cpp, csharp, css, cuesheet, d, dart, dcl, dcpu16, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, ezt, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, icon, idl, ini, inno, intercal, io, ispfpanel, j, java, java5, javascript, jcl, jquery, julia, kixtart, klonec, klonecpp, kotlin, latex, lb, ldif, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, mathematica, matlab, mercury, metapost, mirc, mk-61, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nginx, nimrod, nsis, oberon2, objc, objeck, ocaml-brief, ocaml, octave, oobas, oorexx, oracle11, oracle8, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, phix, php-brief, php, pic16, pike, pixelbender, pli, plsql, postgresql, postscript, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, pys60, python, q, qbasic, qml, racket, rails, rbs, rebol, reg, rexx, robots, rpmspec, rsplus, ruby, rust, sas, sass, scala, scheme, scilab, scl, sdlbasic, smalltalk, smarty, spark, sparql, sql, standardml, stonescript, swift, systemverilog, tcl, tclegg, teraterm, texgraph, text, thinbasic, tsql, twig, typoscript, unicon, upc, urbi, uscript, vala, vb, vbnet, vbscript, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xojo, xorg_conf, xpp, xyscript, yaml, z80, zxbasic.

Development

Sources of this plugin are available both in SVN and Git:

The GitHub repository includes local contributor tooling based on mise, Composer, pnpm, and wp-env. A typical setup is:

  1. mise install
  2. mise run bootstrap
  3. mise run test
  4. mise run wp-start

Feel free to check them out, make your changes and send me patches or pull requests. Promise, I will apply every patch (of course, if they add a value to the product). Email for patches, suggestions, or bug reports: kpumuk@kpumuk.info.

If you’re interested in translating CodeColorer to your language, please check out the translation page for the plugin.

Customization

Syntax coloring is highly customizable: you could change the color scheme for all languages or a specific language. You could find CodeColorer CSS in wp-content/plugins/codecolorer/codecolorer.css file. To change colors for all languages edit lines below Color scheme section.

There is a simple mapping between TextMate color themes and CodeColorer ones:

/* "Slush & Poppies" color scheme (default) */
.codecolorer-container, .codecolorer { color: #000000; background-color: #F1F1F1; }
/* Comment */
.codecolorer .co0, .codecolorer .co1, .codecolorer .co2, .codecolorer .co3, .codecolorer .co4, .codecolorer .coMULTI { color: #406040; font-style: italic; }
/* Constant */
.codecolorer .nu0, .codecolorer .re3 { color: #0080A0; }
/* String */
.codecolorer .st0, .codecolorer .st_h, .codecolorer .es0, .codecolorer .es1 { color: #C03030; }
/* Entity */
.codecolorer .me1, .codecolorer .me2 { color: #0080FF; }
/* Keyword */
.codecolorer .kw1, .codecolorer .kw2, .codecolorer .sy1 { color: #2060A0; }
/* Storage */
.codecolorer .kw3, .codecolorer .kw4, .codecolorer .kw5, .codecolorer .re2 { color: #008080; }
/* Variable */
.codecolorer .re0, .codecolorer .re1 { color: #A08000; }
/* Global color */
.codecolorer .br0, .codecolorer .sy0 { color: #000000; }

Check the codecolorer.css file to get more examples.

Installation

  1. Download and unpack plugin files to wp-content/plugins/codecolorer directory.
  2. Enable CodeColorer plugin on your Plugins page in Site Admin.
  3. Go to the Settings > CodeColorer page in Site Admin and change the plugin options as you wish.
  4. Use [cc lang="lang"]code[/cc] or <code lang="lang">code</code> syntax to insert a code snippet into the post (you can skip lang="lang" if you want a plain CodeColorer block without syntax highlighting). You can also use [cci lang="lang"]code[/cci] to format inline code (see the “inline” option description).
  5. Have fun!

Syntax

To insert a code snippet into your post (or comment) you can use [cc lang="lang"]code[/cc] or <code lang="lang">code</code> syntax. Starting from version 0.6.0 you can specify additional CodeColorer options inside the [cc] tag:

[cc lang="php" tab_size="2" lines="40"]
// some code
[/cc]

Note: You should always use double quotes or single quotes around the parameter value. Boolean values could be passed using string true or false, on or off, number 1 or 0.

Shortcodes

Starting from CodeColorer 0.8.6 you can use shortcodes to insert code snippets. The general form looks like [ccM_LANG], where LANG is your programming language, and M is one or more of the following modes:

  • i – inline
  • e – escaped
  • s – strict
  • n – line_numbers
  • b – no_border
  • w – no_wrap
  • l – no_links

Small letter means enabled, capital – disabled. Examples:

PHP code with links enabled and line numbers disabled:

[cclN_php]
echo "hello"
[/cclN_php]

Already escaped HTML code:

[ccie_html]&lt;html&gt;[/ccie_html]

Ruby code without wrapping having tab size equal to 4:

[ccW_ruby tab_size="4"]
attr_accessor :title
[/ccW_ruby]

More examples could be found on the CodeColorer Examples page. You can find modes explained below.

Possible parameters

  • lang (string) – source language.
  • tab_size (integer) – how many spaces would represent TAB symbol.
  • lines (integer) – how many lines would be block height without scroll; could be set to -1 to remove vertical scrollbar.
  • width (integer or string) – block width.
  • height (integer or string) – height in pixels; used when the number of lines is greater than the “lines” value.
  • rss_width (integer or string) – block width in RSS feeds.
  • theme (string) – color theme (default, blackboard, dawn, mac-classic, twitlight, vibrant, geshi, railscasts, solarized-light, solarized-dark).
  • first_line (integer) – a number of the first line in the block.
  • highlight (string) — a comma-separated list of line numbers or ranges of line numbers to highlight (e.g. 1,5,8-11).
  • escaped (boolean) – when true special HTML sequences like &lt; or &#91; will be treated as encoded (in this example as < and [ respectively.)
  • line_numbers (boolean) – when true line numbers will be added.
  • no_links (boolean) – when false keywords will be represented as links to manual.
  • inline (boolean) – when true forces code block to render inside “`. Used to paste a single line of code into the regular text.
  • strict (boolean) – when true strict mode will be enabled. By default CodeColorer tries to guess whether strict mode is needed, so this option allows to force it on or off when automatic suggestion is wrong.
  • nowrap (boolean) – when false no horizontal scrollbar will be shown; instead code will be wrapped in the end of code box.
  • noborder (boolean) – when true no border will be shown around the code block.
  • no_cc (boolean) – when true the syntax in code block will not be highlighted, code will be rendered inside ``` tag.
  • class (string) – additional CSS classes to add to the wrapper HTML element.
  • file (string) — when specified, code will be loaded from external file. Should be a relative to uploads folder path, only files from uploads are allowed to be embedded.

You can use special tag [cci] instead of [cc] to force inline mode:

[cci lang="php"]some code[/cci]

Most of these parameters could be configured via the CodeColorer options page.

To insert an example of CodeColorer shortcodes you can use something like this:

[cce_bash]
&amp;#91;cc lang="html"]
<title>CodeColorer short code colorized</title>
&amp;#91;/cc]
[/cce_bash]

Changelog

0.12.1 (November 24, 2026)

  • Improved filtering of HTML in comments.
  • Added the codecolorer_comment_allowed_html filter to customize the HTML allowed in comments.

0.12.0 (August 14, 2026)

  • Added a WordPress Playground demo with sample highlighted content.
  • Added dedicated publishing for WordPress.org plugin-directory assets.
  • Expanded real WordPress compatibility coverage through WordPress 7.1 and refreshed development tooling.

0.11.0 (March 13, 2026)

  • Fixed comment protection for suffixed shortcodes such as [cc_php] and [cci_php].
  • Modernized admin asset loading and hardening around settings sanitization, nonce-protected dismissals, and direct-access guards.
  • Improved documentation and release metadata, including clearer usage docs and safer WordPress.org asset publishing.

0.10.2 (March 12, 2026)

  • Fixed stored XSS in shortcode attributes, including comment-rendered shortcodes.
  • Improved compatibility coverage across supported PHP and WordPress versions with real WordPress integration tests.
  • Modernized local development, CI, and release tooling for more reliable maintenance.

0.10.1 (May 28, 2023)

  • Addressed a script injection in custom CSS classes and custom CSS block.

0.10.0 (April 28, 2023)

  • Addressed compatibility issues with PHP 8.0+ and tested with the latest WordPress version.

Full changelog on WordPress.org →

Screenshots

Ruby syntax highlighting without scrollbars (Vibrant theme).
Ruby syntax highlighting without scrollbars (Vibrant theme).
Ruby syntax highlighting with scrollbars (Twitlight theme).
Ruby syntax highlighting with scrollbars (Twitlight theme).
Inline code syntax highlighting.
Inline code syntax highlighting.
Settings page.
Settings page.

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 CodeColorer alternatives

All code plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager WPCode Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code… by Syed Balkhi 3M+ ★★★★★★★★★★ 4.9 (1.9K) 3 weeks ago 94
2 Code Snippets Code Snippets Manage custom WordPress code in one dashboard. Create PHP and HTML snippets, preview code… by Code Snippets Pro 1M+ ★★★★★★★★★★ 4.7 (512) 1 week ago 92
3 Head & Footer Code Head & Footer Code Easy add site-wide, category and article specific custom code before the closing and , or… by Aleksandar Urošević 100K+ ★★★★★★★★★★ 5 (51) 3 months ago 71
4 Simple Custom CSS Plugin Simple Custom CSS Plugin Add Custom CSS to your WordPress site without any hassles. by John Regan 100K+ ★★★★★★★★★★ 4.7 (159) 2 years ago 51
5 Shortcoder — Create Shortcodes for Anything Shortcoder — Create Shortcodes for Anything Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the… by vaakash 100K+ ★★★★★★★★★★ 4.9 (227) 3 months ago 77
6 Scripts n Styles Scripts n Styles This plugin allows Admin users to individually add HTML, custom CSS, Classes and JavaScript… by WraithKenny 30K+ ★★★★★★★★★★ 4.4 (30) 3 years ago 45
7 SyntaxHighlighter Evolved SyntaxHighlighter Evolved Easily post syntax-highlighted code to your site without having to modify the code at all… by Alex Mills 20K+ ★★★★★★★★★★ 4.3 (86) 16 hours ago 91
8 Code Embed Code Embed Code Embed provides a very easy and efficient way to embed code (JavaScript, CSS and HTML)… by David Artiss 10K+ ★★★★★★★★★★ 4.4 (45) 1 week ago 87
9 Advance Custom HTML – Show Live Code, Share Snippets, Embed Code, and Style Them Your Way. Advance Custom HTML Advance Custom HTML lets you write and display HTML, CSS, PHP, and other code snippets on… by bPlugins 10K+ ★★★★★★★★★★ 2.5 (4) 1 day ago 68
10 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 months ago 62

FAQ

CodeColorer: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is CodeColorer free?

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

Is CodeColorer safe to use in 2026?

Yes — CodeColorer is a safe, well-maintained plugin to use in 2026. It runs on 1K+ sites, is rated 4.9/5 and was last updated 1 week ago, and scores 82/100 on our health check.

How many websites use CodeColorer?

CodeColorer is active on 1K+ WordPress websites and has been downloaded 129,939 times since it launched in April 2007. It was downloaded 1,477 times in the last 30 days.

Does CodeColorer work with WordPress 7.1?

Yes. The developer has tested CodeColorer up to WordPress 7.1.5, the latest release. It requires WordPress 4.0 or newer.

What PHP version does CodeColorer need?

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

When was CodeColorer last updated?

The latest version, 0.12.1, was released on November 24, 2026 (1 week ago).

Who makes CodeColorer?

CodeColorer is developed and maintained by Dmytro Shteflyuk.

What are the best alternatives to CodeColorer?

The most popular alternatives to CodeColorer are WPCode (3M+ installs), Code Snippets (1M+ installs) and Head & Footer Code (100K+ 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