We'll create fresh WordPress site with SyntaxHighlighter2 installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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):
as
, as3
cpp
, c
, c++
c#
, c-sharp
, csharp
cf
, coldfusion
css
delphi
, pascal
diff
erlang
groovy
java
javafx
js
, jscript
, javascript
perl
php
plain
powershell
py
, python
rb
, ruby
, rails
, ror
scala
sql
vb
, vb.net
xml
, html
, xhtml
, xslt
This plugin uses the SyntaxHighlighter JavaScript package by Alex Gorbatchev.
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 5+