WP Prism Syntax Highlighter

By : GuiTeK

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 in just one click.
  • It requires no configuration at all, however you can still customize the default settings in the plugin's settings page.

It supports all Prism features, namely:

  • Syntax highlighting (30+ languages)
  • Custom themes (6 official themes)
  • Plugins (7 official plugins: Line Highlight, Line Numbers, Show Invisibles, Autolinker, WebPlatform Docs, File Highlight, Show Language)

NOTE: the plugin archive contains

  • all languages definitions
  • no plugin
  • default theme

It is recommended to use only what you need in order to keep the plugin the smallest possible. Please download your custom Prism from http://prismjs.com/download.html and upload the files in:

  • your_plugin_directory/wp-prism-syntax-highlighter/css/
  • your_plugin_directory/wp-prism-syntax-highlighter/js/ Do NOT replace the original prism.css and prism.js, you will lose all your changes as they get overwritten when updating the plugin!

Help
Wondering how to install the plugin? Visit the Installation page. Want to see the plugin in action? Click Screenshot above. Got any question? See the FAQ.

Contribute
Both Prism and this plugin are distributed under the MIT license and are developed during our free time. Any help, even a bug report, is much appreciated! To contribute:

  • Prism: https://github.com/LeaVerou/prism
  • Plugin: https://github.com/GuiTeK/wp-prism-syntax-highlighter

Why another Prism plugin?
If you searched the plugin directory, you certainly noticed that there are several Prism plugins for WordPress. Well, none of them satisfied me: one plugin had no code editor, the other didn't escape HTML tags, another didn't have the options I needed... so I made a new one to suit my needs.

WP PrismJS - Syntax Highlighter

Easily highlight your code on WordPress with WP PrismJS. Simply download & activate the plugin and a new icon on your TinyMCE editor will appear. Click on it and you will be able to enter your indented code; choose the language; specifying the maximum height of the code window and the filename..........

Similar: 80%

Pygments for WordPress

This WordPress plugin is a syntax highlighter for many different computer languages, including HTML, Python, PHP, Javascript, CSS, and many others. It uses the Pygments syntax highlighter from Python. See http://derek.simkowiak.net/pygments-for-wordpress/ for full documentation....

Similar: 58%

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: 50%

Prism Syntax Highlighter for WordPress

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.........

Similar: 46%

Code Prettify

Uses the Google Code Prettify library that is minified and properly enqueued. Plugin applies code highlighting automatically to all <pre> and <code> tags on the page....

Similar: 45%

WP Chili

Easy code highlighting for WordPress with Chili (the bundled version is 2.2): Switch to the code tab Put your code snippet inside <code class="lang"></code> tags Replace the above lang with the language to highlight ...

Similar: 28%

SyntaxHighlighter Plus

SyntaxHighlighter Plus is a WordPress plugin for code syntax highlighting. It is an enhanced version of the original SyntaxHighlighter by Matt, Viper007Bond and mdawaffe. Please give them a big applause for making such a great plugin! SyntaxHighlighter allows you to easily post syntax highlighted c.........

Similar: 25%

WP Code Prettify

This plugin enable syntax highlighting of code snippets in your post using Google Code Prettify....

Similar: 25%

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: 24%

Developer Formatter

Create a better display of codes on your page/blog. For everybody that publish examples, source-code and some tips about a specific language. This plugin do use of GeSHi highlight system, so you will have support for more then 110 languages, including PHP, ASP, Html, JavaScript, CSS, Java, Python, D.........

Similar: 19%