Prism Syntax Highlighter for WordPress

By : Nico

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.
  • 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 (2015-04-20)

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
  • Less
  • Sass (Scss)

Plugins

  • Line Highlight
  • Line Numbers
  • WebPlatform Docs
  • Show Language

Lite Syntax Highlighting

The Plugin makes it easy to add syntax highlighting of code in your blog posts. It adds some buttons to editor, which generate special html tags to turn on syntax highlighting: <pre class="html"></pre> for example. The plugin supports highlighting: PHP HTML CSS JavaScript C Language.........

Similar: 84%

APH Prism Highlighter

Prism is one of the most popular syntax highlighters that widely used by a lot of blog or websites, some of them are popular websites, such as Mozilla, drupal, and SitePoint. One reason why a lot of websites prefer to use this highlighter is because it's ability to do custom builds of the language.........

Similar: 80%

WP Prism Syntax Highlighter

WP Prism Syntax Highlighter enables you to use Prism by Lea Verou in your WordPress blog. Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. It has an easy and convenient code editor integrated into the WordPress editor toolbar: you can insert code.........

Similar: 72%

Crayon Syntax Highlighter

A Syntax Highlighter built in PHP and jQuery that supports customizable languages and themes. It can highlight from a URL, or WordPress post text. Crayon makes it easy to manage Language files and define custom language elements with regular expressions. It also supports some neat features like: I.........

Similar: 63%

Dottoro Syntax Highlighter

Dottoro Highlighter plugin is based on the Dottoro Syntax Highlighter service that provides professional coloring for CSS, HTML, JavaScript and XML languages. It supports highlighting CSS, JavaScript and XML blocks embedded into HTML documents, optionally selectable line numbering and buttons for co.........

Similar: 40%

Short Syntax Highlighter Shortcode

Short Syntax Highlighter allows you to easily post syntax-highlighted code to your site without losing it's formatting or making any manual changes. Without adding any JS or css file in your theme. This plugin will help you to highlight the code systax. Step by step installation instructions >&.........

Similar: 39%

rtSyntax

Uses highlight.js. 26 themes included. 55 languages supported (54 from highlight.js + 1 for nginx commands). Auto-detects language. Super-optimised, only loads js for the language. Adds buttons to tinyMCE for ease of adding code blocks. Optimised code with minimal overheads. All code on Github. ...

Similar: 34%

Plum Code Box

Do you ever have a really hard getting your code formatted correctly in a post? Or do you ever have issues preserving tabs? Plum Code Box makes it easy to insert and manage code blocks using the Chili javascript syntax highlighter. The plugin adds option boxes to post and page editors. There are al.........

Similar: 34%

SmartAss Highlighter

SmartAss Highlighter is a simple and easy to use code prettifier for wordpress. The code between <pre> and </pre> tags is highlighted. Almost all languages are supported, no need to mention the code language. Customizable for each post, use [highlighter] shortcode to enable for particul.........

Similar: 19%

WP Code Highlight

WP Code Highlight provides syntax highlighting of source code snippets and it is W3C valid. Wrap code blocks with <pre> and </pre> It provides a code button(HTML editor) to help you insert code in articles easily. You don't need to specify the language since WP Code Highlight will gues.........

Similar: 14%