LumiCode — Syntax Highlighter for WordPress
Install Free
WordPress Plugin · v1.5.3

// syntax-highlighter.wp

Code that
actually
looks good.

LumiCode brings VS Code–quality syntax highlighting to WordPress. 40+ languages, 15+ themes, zero configuration. Your readers deserve beautiful code.

40+ Languages
15+ Themes
<15KB JS + CSS
Free Forever
fetchUser.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
async function fetchUser(
  userId: string,
  retries: number = 3
): Promise<User> {
  for (let i = 0; i < retries; i++) {
    const res = await fetch(`/api/${userId}`);
    if (res.ok) return res.json();
  }
  throw new Error('Failed after retries');
}

// Call with default retries
const user = await fetchUser('usr_abc123');
console.log(user.name);
Ln 14, Col 26 · UTF-8 · LF TypeScript

Everything a developer
blog deserves.

All the features you'd expect from a premium highlighter, shipped as a free WordPress plugin.

Auto Language Detection
40+ languages detected automatically — PHP, JS, TypeScript, Python, Go, Rust, SQL, YAML, Bash and more. No setup required.
15+ Hand-picked Themes
Atom One Dark, Catppuccin, Dracula, GitHub, Monokai, Solarized and more. Switch globally or per block.
VS Code–style Chrome
Titlebar, statusbar, macOS traffic-light dots, filename badge, and language indicator. Every code block looks production-grade.
One-click Copy
Copy button on every block. Works with keyboard shortcuts and gives visual feedback on success.
Line Numbers & Highlights
Perfectly aligned line numbers synced to font size. Highlight specific lines with the highlight attribute.
Collapse Long Blocks
Long snippets auto-collapse after a configurable number of lines. Expand on demand. Keeps posts readable.
Dark / Light Mode
Toggle from the admin topbar. Apply to admin only or push to the entire frontend with one click.
Gutenberg + Classic Editor
Native block for Gutenberg. ⚡ Code button in TinyMCE. Works seamlessly with both editors.
Performance First
highlight.js from Cloudflare CDN. Under 15 KB of CSS + JS combined. No jQuery. No render-blocking.

Your color.
Your code.

15+ curated highlight.js themes. Switch globally in Settings — preview updates live, saves sitewide on submit.

Atom One Dark
Catppuccin
Dracula
GitHub Dark
Monokai
Solarized
GitHub Light
Solarized Lt
+ 7 more
api.php
1
2
3
4
5
6
7
8
<?php
function lumicode_get_theme(): string {
  return get_option(
    'lumicode_theme',
    'atom-one-dark'
  );
}
Ln 1, Col 1 · UTF-8 · LF PHP

Write once,
highlight anywhere.

shortcode usage
  const config = {

                theme: "dracula",

              }

ATTRIBUTES

lang Language identifier. e.g. php, python, typescript. Auto-detected if omitted.
title Filename shown in the titlebar, e.g. config.js
highlight Lines to accent with a left border. Ranges work: 1,3-5
collapse Force collapse on/off. true / false
collapse-after Collapse after N lines. Overrides global setting.

Retrofit your entire site
in one click.

LumiCode scans every post and page for bare <pre> blocks and lets you apply beautiful formatting — one block at a time, or all at once.

01
Safe by design
Nothing changes without your explicit approval per block. Review every code snippet before applying.
02
Fully reversible
All changes go through WordPress post revisions. Roll back any time with a click.
03
Per-block precision
Each block has a fingerprint. One approval = one block. Set the language, then apply or dismiss.

Beautiful code.
Zero bloat.

LumiCode is engineered for speed. No jQuery. No runtime PHP on the frontend. CDN-delivered highlight.js cached on first load.

LumiCode CSS + JS <15 KB
highlight.js (CDN, cached) ~45 KB
Typical competing plugin ~180 KB
Caching plugin compatible
Pure frontend rendering — no per-request PHP. Works with WP Rocket, W3TC, LiteSpeed, and any caching plugin.
Cloudflare CDN with preconnect
A <link rel="preconnect"> hint is injected automatically so highlight.js resolves before it's needed.
No jQuery dependency
The frontend renderer is vanilla JS. If your theme already drops jQuery, LumiCode doesn't bring it back.
✦ 100% Free

Ship code that
speaks for itself.

Install LumiCode from the WordPress plugin directory in under 60 seconds. No account. No upsells. No strings.