Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Prism Syntax Highlighter for WordPress

Most lightweight, yet most configurable and advanced PrismJS WordPress integration plugin. Custom fields display (detached) supported.

Despite two plugins already on wordpress.org I decided to write my own from scratch. The result is a minimalistic but powerful plugin with only ~250 lines of PHP.

  • Supports every possible Prism configuration.
  • Adds TinyMCE dropdown lost for <code class="language-xxx"> and <pre class="language-xxx"> for bash, css, js, markup, php, scss. (I can make a filter if you want to add more.)
  • Does not load prism on every page, only when needed.
  • Supports automatic detection of prism HTML.
  • Supports displaying code from custom fields with [prism] shortcode.
  • Developers may use the prism handle to enqueue the pre-registered script and style.
  • Has admin editor button for quick shortcode template snippet.
  • Has no options page by design.
  • Read more -> Prism Syntax Highlighter for WordPress

Bundled Prism Version (2016-09-17)

Link: http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+bash+less+php&plugins=line-highlight+line-numbers+wpd+show-language

Skin: Okaida

Languages

  • Markup
  • CSS
  • C-like
  • JavaScript
  • Bash
  • PHP
  • Sass (Scss)

Plugins

  • Line Highlight
  • Line Numbers
  • WebPlatform Docs
  • Show Language
Author Nicolas Jonas
Profile
Contributors nico23
Tags code, code highlighter, highlighter, highlighting, NSA, NSA spying, prism, prismjs, syntax, syntax highlighter

No idea how.

1.1.0 - 2016-09-18

  • Updated bundled prism.js.
  • Added quotes to the shortcode included with the buttin click.
  • Always scan archives, abodon the define switch.
  • Added TinyMCE dropdown styles to style <code> and <pre> tags with language-xxx classes.

1.0.1

  • Added SVG icon for plugin installer

1.0.0

  • Updated bundled Prism version

0.9.6

  • Fix: Missing data-manual output

0.9.5

  • Improved: WTFAQ
  • Fix: Screenshots

0.9.0

  • Release

Will the data mining ever end?

What data mining?

More!

K

Share  
Download
Version 1.1.1

Requires WordPress version: 3.5.0 or higher

Compatible up to: 4.6.3

Last Updated 02 Oct 2016

Date Added: 20 Apr 2014

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

3.4 stars
5 ratings
3,269 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0