Syntax-highlighting Code Block (with Server-side Rendering)
Syntax-highlighting Code Block (with Server-side Rendering) is fully compatible with Simply Static. Recommended setup: Simply Static Pro.
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 ampproject/amp-wp#972) or when JavaScript is turned off in the browser.
Frequently Asked Questions
Is Syntax-highlighting Code Block (with Server-side Rendering) compatible with Simply Static?
Yes. Syntax-highlighting Code Block (with Server-side Rendering) is fully compatible with Simply Static — no extra configuration needed.
Which Simply Static product works best with Syntax-highlighting Code Block (with Server-side Rendering)?
Based on our analysis, Syntax-highlighting Code Block (with Server-side Rendering) works best with Simply Static Pro. Simply Static is for basic static sites, Simply Static Pro adds support for search, forms, and multilingual sites, and Simply Static Studio adds AJAX proxy and REST API support for supported integrations.
Does Syntax-highlighting Code Block (with Server-side Rendering) affect static build times?
Syntax-highlighting Code Block (with Server-side Rendering) has approximately 1,000 active installs. Plugins with complex shortcodes or dynamic blocks may add minor overhead to the static generation pass.
How often is this compatibility data updated?
All plugins are re-scanned monthly. Scans run five analysis passes including an AI classifier. The last tested date at the top of this page reflects the most recent scan.