PluginProbe
SC

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

v1.5.2

by Weston Ruter

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. Doing server-side syntax highligh...

1K+ active installs 5.0 (26 ratings) Requires PHP 7.4+ Requires WP 6.6+ Tested up to WP 7.0 Updated 5 months ago
Browse code Releases

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. Doing server-side syntax highlighting eliminates the need to enqueue any JavaScript on the frontend (e.g. Highlight.js or Prism.js) and this ensures there is no flash of unhighlighted code (FOUC?). 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...

Read the full description on WordPress.org →

Read the source

v1.5.2

Browse every file in this release with syntax highlighting and a file tree, or link straight to a line. Older releases and trunk are available from the version switcher.