WordPress plugin intelligence profile

Syntax-highlighting Code Block (with Server-side Rendering)

Extending the Code block with syntax highlighting rendered on the server, thus being AMP-compatible and having faster frontend performance.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.0
Current version1.5.2
WordPress coverageTested up to WordPress 7.0
Minimum stackWP 6.6 · PHP 7.4
Directory statusactive
Last directory update19 May 20265mo ago
Active installations1K+Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 26 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 Syntax-highlighting Code Block (with Server-side Rendering) version 1.5.2 as active, updated 5mo ago and tested up to WordPress 7.0.

Overview

About this plugin

This plugin extends the Code block in WordPress core to add syntax highlighting which is rendered on the server. Pre-existing Code blocks on a site are automatically extended to include syntax highlighting. g.

). Reducing script on the frontend improves frontend performance, and it also allows for the syntax highlighted code to appear properly in AMP pages as rendered by the official AMP plugin (see also ampproject/amp-wp#972 ) or when JavaScript is turned off in the browser.

This extended Code block uses language auto-detection to add syntax highlighting, but you can override the language in the block’s settings sidebar. js ). The Code block also is extended to support specifying lines to highlight which get marked up with mark elements (including in RSS feeds).

There is also a checkbox for whether to show line numbers on the frontend (with the numbers being non-selectable). Lastly, given inconsistencies across themes regarding whether lines in a Code block should be wrapped, this plugin adds styling to force them to no-wrap by default, with a checkbox to opt in to wrapping when desired.

For advanced usage, please see the plugin wiki.

This plugin is developed on GitHub. See list of current issues with the plugin. Please feel free to file any additional issues or requests that you may come across.

Pull requests are welcome. See contributing information.

Credits

org. Copyright (c) 2018 Marcus Kazmierczak. 0 or later.

php is released under the BSD 3-Clause License. js (original author). php

WordPress.org metadata

Plugin tags

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

  • code highlighting
  • code syntax
  • syntax highlight
  • block
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 7.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 7.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.0
Minimum requirementsWordPress 6.6 · PHP 7.4
Update activity19 May 20265mo 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.