SyntaxHighlighter2

Easily post source code such as PHP or HTML and display it in a styled box.

Author:S H Mohanjith (profile at wordpress.org)
WordPress version required:2.0
WordPress version tested:3.0.0
Plugin version:2.1.2
Added to WordPress repository:15-03-2009
Last updated:30-05-2010
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://mohanjith.com/wordpress/syntaxhighligh...
Total downloads:7 154
Active installs:90+
plugin download
Click to start download

SyntaxHighlighter2 allows you to easily post syntax highlighted code all without loosing it’s formatting or making an manual changes.

It supports the following languages (the alias for use in the post is listed next to the name):

  • AS3 — as, as3
  • C++ — cpp, c, c++
  • C# — c#, c-sharp, csharp
  • ColdFusion – cf, coldfusion
  • CSS — css
  • Delphi — delphi, pascal
  • Diff/Patches — diff
  • Erlang — erlang
  • Groovy — groovy
  • Java — java
  • JavaFX — javafx
  • JavaScript — js, jscript, javascript
  • Perl — perl
  • PHP — php
  • Plain text — plain
  • PowerShell — powershell
  • Python — py, python
  • Ruby — rb, ruby, rails, ror
  • Scala — scala
  • SQL — sql
  • VB — vb, vb.net
  • XML/HTML — xml, html, xhtml, xslt

This plugin uses the SyntaxHighlighter JavaScript package by Alex Gorbatchev.

Other BBCode Methods

Find [sourcecode language='css']code here[/sourcecode] too long to type? Here’s some alternative examples:

  • [source language='css']code here[/source]
  • [code language='css']code here[/code]

  • [sourcecode lang='css']code here[/sourcecode]

  • [source lang='css']code here[/source]
  • [code lang='css']code here[/code]

  • [sourcecode='css']code here[/sourcecode]

  • [source='css']code here[/source]
  • [code='css']code here[/code]

PHP Version

PHP 5+


FAQ
ChangeLog