BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
Coywolf Code Block Enhancer icon
Actively maintained Tested with WP 7.1

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.

Active installs<10New
Downloads · 30d59▼ -4.8% vs prev. 30d
Rating5/51 reviews
Health score71/100Good
All-time downloads263Since Jun 2026
Support resolved1 / 1100% in last 2 months
RequiresWP 6.3PHP 7.4+
Downloads · 7d18▲ +38.5% week over week
Our verdict

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 & support

Daily downloads

51117Jul 16Aug 29Oct 13
Yesterday5
Daily average (1y)2
Peak day37Jun 15, 2026
Last 12 months266

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

Rankings

Where Coywolf Code Block Enhancer stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
code >100 10,000 Best code plugins →
copy code >100 8,539 Best copy code plugins →
gutenberg >100 7,965 Best gutenberg plugins →
prism #6 67 Best prism plugins →
syntax highlighting #73 352 Best syntax highlighting plugins →

Rating breakdown

★★★★★★★★★★ 5 from 1 reviews

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

About Coywolf Code Block Enhancer

From the official readme · v1.0.60

Description

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 the defer strategy 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

  1. Upload the code-block-enhancer folder to /wp-content/plugins/,
    or upload the .zip via Plugins → Add New → Upload Plugin.
  2. Activate the plugin.
  3. 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).

Full changelog on WordPress.org →

Screenshots

The Code Block Enhancer settings screen, showing the Appearance section with the code block theme dropdown set to 'Default — Auto (follow OS dark mode)' and a live preview of a syntax-highlighted PHP code block with a copy-to-clipboard button.
The Code Block Enhancer settings screen, showing the Appearance section with the code…
A syntax-highlighted JSON-LD code block rendered on the front end of a Coywolf Guides article, showing a Schema.org Article example with @context, @type, headline, description, and a nested author Person object.
A syntax-highlighted JSON-LD code block rendered on the front end of a Coywolf Guides…

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 Coywolf Code Block Enhancer 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) 6 days ago 95
2 Code Snippets Code Snippets An easy, clean, and simple way to enhance your site with code snippets. by Code Snippets Pro 1M+ ★★★★★★★★★★ 4.7 (509) 2 days ago 95
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) 1 month ago 77
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) 4 weeks ago 81
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) 2 years ago 51
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) 2 months ago 83
9 WP Coder – Insert & Manage Code Snippets WP Coder – Insert & Manage Code Snippets Snippets made simple — easily insert and manage custom PHP, CSS, JS & HTML without coding… by Wow-Company 10K+ ★★★★★★★★★★ 4.9 (32) 2 weeks ago 85
10 Advance Custom HTML – Show Off Code Snippets with Live Preview Advance Custom HTML Display HTML, CSS, JavaScript, PHP & Python code snippets in WordPress with live preview… by bPlugins 10K+ ★★★★★★★★★★ 2.5 (4) 2 weeks ago 73

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
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.