WordPress plugin intelligence profile

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.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.0.60
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.3 · PHP 7.4
Directory statusactive
Last directory update13 Aug 20262mo ago
Active installationsNewAdoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Coywolf Code Block Enhancer version 1.0.60 as active, updated 2mo ago and tested up to WordPress 7.1.

Overview

About this plugin

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

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

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

txt ). They

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

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.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • copy code
  • syntax highlighting
  • gutenberg
  • prism
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.3 · PHP 7.4
Update activity13 Aug 20262mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.