Adds Prism Syntax Highlighting to WordPress, using custom fields for your code examples.
As of April 2026, Prism Syntax Highlighter (detached) is a WordPress prism plugin with 10 active installations and a 4.3/5 rating from 4 reviews. It has been downloaded 3.0K+ times in total. Requires WordPress 3.4.0+ and PHP false+. Available on WordPress.org since 2012. Last updated 12 years ago — may have compatibility concerns. Top alternative: APH Prism Syntax Highlighter.
Integrates the Prism Syntax Highlighting Library in WordPress.
It is called detached, since the code examples are not stuffed into the rich text editor, together with all the
other texts and content, but they are added separately as custom fields and just referenced via short tags (like footnotes).
Check Other Notes for usage documentation.
The official development repository is hosted on Github.
The basic procedure is:
[prism ...] shorttag in your code, where you want the code block to appear.[prism key=".." language=".." line=".." line_offset=".." post=".."]
key: the name of the custom field, which contains the code (required)language: the language to highlightline: highlighted lines (for syntax, check th…| WordPress | 3.4.0+ requiredTested up to 3.5.2 |
| PHP | false+ required |
…and 1 more changes
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.