🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Code Markup icon
Possibly abandoned Tested up to 2.5 #41 in code

Code Markup

Code Markup is a WordPress plugin that makes it easy to include program code samples in your posts. You can even include HTML markup in the code sample; Code Markup magically knows which characters should be displayed…

Active installs200+100+ tier
Downloads · 30d158▲ +62.9% vs prev. 30d
Rating—0 reviews
Health score26/100At risk
All-time downloads21.9KSince May 2005
Support resolved—No recent threads
RequiresWP 1.5PHP any
Downloads · 7d51▲ +37.8% week over week
Our verdict

Consider an alternative

Code Markup shows warning signs in 2026 — compare the alternatives below before installing. It runs on 200+ sites and was last updated 19 years ago, and scores 26/100 on our health check.

  • Small user base (200+ active installs)
  • Very few reviews so far
  • No update in 18 years
  • Only tested up to WordPress 2.5 (latest is 7.1)

How does it stack up?

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

Daily downloads

4812Sep 4Oct 18Dec 2
Yesterday16
Daily average (1y)2
Peak day16Dec 2, 2026
Last 12 months745

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

Rankings

Where Code Markup stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
code >100 10,000 Best code plugins →
format >100 10,000 Best format plugins →
html.xml #1 1 Best html.xml plugins →
java >100 176 Best java plugins →
markup >100 5,278 Best markup plugins →

Version adoption

Share of active sites per release.

  • 1.3100.0%

About Code Markup

From the official readme · v1.3

Description

Code Markup is a WordPress plugin that makes it easy to include program code samples in your posts. You can even include HTML markup in the code sample; Code Markup magically knows which characters should be displayed as code and which should be rendered as HTML.

The plugin works by escaping most special HTML tags and characters so they display exactly as typed, but leaving certain ones alone so they will render as normal HTML. The default set of allowed tags is the standard formatting tags like em, strong, span and so on. You can control this explicitly, or implicitly by specifying the language of the code block. For example, in a normal code block, <em> will be rendered as emphasised text, but in an HTML code block, <em> will be displayed as <em>.

(I have to use square brackets instead of angle brackets because of the WordPress Extend site formatting.)

USAGE

  1. Enclose any code inside a <code> block.

  2. Use <code markup=”…” lang=”…”> to specify appearance of code.

    • Include any HTML markup you like in the code, for example to add emphasis to certain sections.
    • Separate <code> blocks should be nested within a <pre> block to preserve whitespace.
  3. If you want to fine-tune how Code Markup treats your code, use the markup and lang attributes on the code tag to specify how Code Markup should handle it.

    • <code> or <code markup=”default”> allows common HTML tags to be rendered, and displays everything else exactly as written.
    • <code markup=”none”> displays content exactly as written ? no markup is rendered.
    • <code markup=”all”> renders content as HTML ? all markup is rendered.
    • <code markup=”em strong a”> treats <em>, <strong> and <a> tags as HTML markup ? everything else is displayed exactly as written. You can put whatever tags you like in the markup attribute, separated by spaces. As a special case, you can include the comment tag ? this means that HTML comments <!– like this –> will be ?rendered? as normal HTML comments (i.e. not displayed).
    • <code lang=”html”> or <code lang=”xhtml”> displays content exactly as written, the same as <code markup=”none”>.
  4. The markup attribute overrides the lang attribute.

  5. Separate <code> blocks should be nested within a <pre> block to
    preserve whitespace.

Installation

  1. Copy code-markup.php into your WordPress plugins directory (wp-content/plugins).
  2. Log in to WordPress Admin. Go to the Plugins page and click Activate for Code Markup.
  3. Go to the Options page and click Writing. Make sure “WordPress should correct invalidly nested XHTML automatically” is NOT checked. (Otherwise it may do funny things to your code listings.)

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 Markup 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) 14 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) 23 hours 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

Code Markup: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Code Markup free?

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

Is Code Markup safe to use in 2026?

Code Markup shows warning signs in 2026 — compare the alternatives below before installing. It runs on 200+ sites and was last updated 19 years ago, and scores 26/100 on our health check.

How many websites use Code Markup?

Code Markup is active on 200+ WordPress websites and has been downloaded 21,910 times since it launched in May 2005. It was downloaded 158 times in the last 30 days.

Does Code Markup work with WordPress 7.1?

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

When was Code Markup last updated?

The latest version, 1.3, was released on April 14, 2008 (19 years ago).

Who makes Code Markup?

Code Markup is developed and maintained by bennettmcelwee.

What are the best alternatives to Code Markup?

The most popular alternatives to Code Markup 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