Coywolf Code Block Enhancer
Syntax highlighting and a copy-to-clipboard button for the native WordPress Code block, plus a language picker in the editor sidebar.
Solid choice
Coywolf Code Block Enhancer is a solid plugin choice in 2026, with a few things worth checking first. Is rated 5/5 and was last updated 2 months ago, and scores 71/100 on our health check.
- Tested with the latest WordPress (7.1)
- Small user base (<10 active installs)
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Coywolf Code Block Enhancer stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| code | >100 |
| copy code | >100 |
| gutenberg | >100 |
| prism | #6 |
| syntax highlighting | #73 |
Rating breakdown
★★★★★★★★★★ 5 from 1 reviews
About Coywolf Code Block Enhancer
From the official readme · v1.0.60Description
Coywolf Code Block Enhancer extends the built-in core/code block. In the editor
it adds a “Code language” dropdown to the block sidebar; on the front end
it highlights the code with Prism.js using a custom token palette, prints
the language name as a small label on the block, and pins a
copy-to-clipboard button to the top-right corner.
- Adds a “Code language” dropdown to the core Code block’s sidebar. A
baseline of 9 languages (Bash, CSS, HTML/Markup, JavaScript, JSON,
PHP, Python, SQL, YAML) is always loaded; an additional 40 grammars
can be toggled on via Language packs in Tools → Code Blocks
(Web/App dev — TypeScript, JSX/TSX, SCSS, Sass, Less, GraphQL — is
enabled by default). - Highlights code on the front end with Prism.js. Pick from 45 bundled
themes — the 8 stock Prism themes (Prism Default, Coy, Dark, Funky,
Okaidia, Solarized Light, Tomorrow Night, Twilight) plus 37 community
themes from PrismJS/prism-themes (a11y Dark, Atom Dark, Dracula,
Nord, One Dark, Night Owl, Synthwave ’84, Gruvbox, Material, VS Code
Dark+, and more) — or the bundled Default palette (selected on
first install). - Adds a small language label in the top-left of each highlighted block
(only when a language is set). - Adds an accessible copy-to-clipboard button —
aria-label, a polite
status region that announces “Copied to clipboard,” and a visible “✓”
state for two seconds after a successful copy. Falls back to
document.execCommand(‘copy’) on non-HTTPS or older browsers. - Assets load only on singular posts/pages that contain a code block;
Prism core and grammars are loaded with thedeferstrategy so they
never block rendering. - Dark-mode aware out of the box — with the bundled Default — Auto
theme (selected on first install), code blocks follow each visitor’s
prefers-color-scheme automatically. Override from
Tools → Code Blocks by switching to Default — Always light /
Always dark, or by picking any of the static Prism themes.
How it works
The chosen language is stored as a language block attribute on
core/code, which lives in the block delimiter comment rather than the
saved markup. That means blocks without a language stay valid and
existing content is never migrated.
On render, the plugin uses WP_HTML_Tag_Processor to add data-language
to the <pre> and language-xxx to the <code> server-side — so KSES
won’t strip data-* attributes for non-admin authors, and there is no
block-validation churn.
Prism core and the per-language grammars are bundled under
assets/prism/ at v1.30.0 (MIT — see assets/prism/LICENSE.txt). They
register as deferred scripts with explicit dependency ordering (e.g.
markup-templating before php, clike before languages that extend
it). The copy-button script depends on the last grammar in the chain,
so all of Prism is present before the copy UI is wired up. Reading
code.textContent returns the original source even after Prism wraps
tokens in spans, so the copied text is unaffected by highlighting.
Self-hosting Prism (rather than loading from a public CDN) keeps the
third-party-script supply chain off the plugin’s surface and means the
plugin works on sites with strict CSPs or no external egress.
Privacy
Privacy-first: this plugin includes no analytics, no tracking, and no data gathering. Nothing about you, your site, or your visitors is ever collected or sent anywhere.
Installation
- Upload the
code-block-enhancerfolder to/wp-content/plugins/,
or upload the .zip via Plugins → Add New → Upload Plugin. - Activate the plugin.
- Edit a post or page, add (or open) a Code block, and pick a language
from the “Code language” panel in the block sidebar. The code is
highlighted on the front end and a copy button appears in the
top-right of the block.
Frequently asked questions
Which languages are supported out of the box?
Bash/Shell, CSS, HTML/Markup, JavaScript, JSON, PHP, Python, SQL, and YAML. The dropdown also includes “None (plain text)” to render a block without highlighting.
How do I add another language?
Open Tools → Code Blocks → Language packs and enable the pack that contains the language you need. The baseline 9 languages are always available; the other 40 grammars are grouped into packs you can toggle on. Anything you enable shows up in the Code block’s “Code language” dropdown automatically — no code editing required.
Will this break my existing code blocks?
No. The language is stored as a block attribute, not baked into the saved markup, so blocks without a language stay valid and the front-end language class is applied at render time. Existing content is not migrated and is unaffected.
Does Prism load on every page?
No. The token CSS only enqueues on singular posts/pages where has_block( ‘core/code’ ) is true, and the Prism scripts are only enqueued from inside the render_block filter for core/code — so a page with no code block ships none of these assets. Prism is also loaded with the defer strategy so it never blocks rendering.
My site has a Content Security Policy. What do I need to allow?
Nothing extra. Prism and the copy-button script are bundled with the plugin and served from your own origin, so a script-src 'self' policy is enough. There is no external CDN call from the front end.
How do I change the theme?
Go to Tools → Code Blocks in WP Admin. The “Code block theme” dropdown lists every bundled theme in three groups: Coywolf (Default — Auto / Always light / Always dark), Prism (built-in), and Prism Themes (community). Below the dropdown a live preview pane re-renders a sample PHP snippet in the highlighted theme on every change — your site keeps the previously saved theme until you click Save Changes. The selected theme’s stylesheet is enqueued only on posts that contain a code block; only one theme file is ever loaded per request.
How do I lock code blocks to light or dark mode for everyone?
If you’re on the bundled Default — Auto theme (the first-install default), switch to Default — Always light or Default — Always dark in Tools → Code Blocks. Picking any of the Prism themes also locks the appearance — those themes are static and don’t react to OS dark mode. The lock is implemented in CSS — there is no inline injected per request — so it composes cleanly with caching plugins.
Where do the Prism themes come from?
The 8 stock themes are bundled from PrismJS/prism at v1.30.0 (MIT — see assets/themes/LICENSE-prism.txt). The 37 community themes are bundled from PrismJS/prism-themes (MIT — see assets/themes/LICENSE-prism-themes.txt). They are served from your own origin alongside the rest of the plugin’s assets — no external request at runtime.
Why is the language label not appearing on a particular block?
The label only renders when a language is set (the CSS rule is .wp-block-code[data-language]::before). If the block was created before the plugin was installed, open it in the editor and pick a language from the sidebar so the language attribute is saved.
Changelog
1.0.60
- Confirm WordPress 7.1 compatibility (Tested up to: 7.1) (#61).
1.0.59
- Dedupe the per-request block scans on code-block pages (#60).
1.0.58
- Updater: run GitHub release checks in the background so the Updates screen never hangs (#59).
1.0.57
- Refresh settings screenshot and reword its caption (#58).
1.0.56
- Remove custom-theme upload feature; rename license files to .txt (WP.org review) (#57).
1.0.55
- Fix WP.org review feedback: enqueue inline JS, 4-char prefixes, DB-stored custom theme (#56).
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.
Best Coywolf Code Block Enhancer alternatives
All code plugins →FAQ
Coywolf Code Block Enhancer: quick answers
Straight answers, pulled from live WordPress.org data.
Live data from WordPress.org · checked Oct 14, 2026
Is Coywolf Code Block Enhancer free?
Yes. Coywolf Code Block Enhancer is free to download and use from the official WordPress.org plugin directory.
Is Coywolf Code Block Enhancer safe to use in 2026?
Coywolf Code Block Enhancer is a solid plugin choice in 2026, with a few things worth checking first. Is rated 5/5 and was last updated 2 months ago, and scores 71/100 on our health check.
How many websites use Coywolf Code Block Enhancer?
Coywolf Code Block Enhancer is active on <10 WordPress websites and has been downloaded 263 times since it launched in June 2026. It was downloaded 59 times in the last 30 days.
Does Coywolf Code Block Enhancer work with WordPress 7.1?
Yes. The developer has tested Coywolf Code Block Enhancer up to WordPress 7.1.3, the latest release. It requires WordPress 6.3 or newer.
What PHP version does Coywolf Code Block Enhancer need?
Coywolf Code Block Enhancer requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Coywolf Code Block Enhancer last updated?
The latest version, 1.0.60, was released on August 13, 2026 (2 months ago).
Who makes Coywolf Code Block Enhancer?
Coywolf Code Block Enhancer is developed and maintained by Coywolf.
What are the best alternatives to Coywolf Code Block Enhancer?
The most popular alternatives to Coywolf Code Block Enhancer are WPCode (3M+ installs), Code Snippets (1M+ installs) and Head & Footer Code (100K+ 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

