SyntaxHighlighter Plus
Over the weekend I went looking for a code plugin for WordPress. I came across SyntaxHighlighter Plus which has a pretty impressive list of formats it supports. I’ll probably mainly use XHTML, XML and CSS. Hopefully the HTML format will suffice for any ColdFusion code I post.
After you have installed and activated the plugin, all you need to do is wrap the code you want formatted with [sourcecode language='blah'] insert code here [/sourcecode] where blah is the language you have written.
The languages supported are:
- Bash — bash, sh
- C++ — cpp, c, c++
- C# — c#, c-sharp, csharp
- CSS — css
- Delphi — delphi, pascal
- Java — java
- JavaScript — js, jscript, javascript
- PHP — php
- Python — py, python
- Ruby — rb, ruby, rails, ror
- SQL — sql
- VB — vb, vb.net
- XML/HTML — xml, html, xhtml, xslt
By default the CSS for the formatted code is quite bright/light, so I jumped into the CSS and customised it so that it fit better with the overall site.
I just updated my Eclipse + Ant + Subversion + SVNAnt post. Go check it out.
About this entry
You’re currently reading “SyntaxHighlighter Plus,” an entry on ConstantConfusion
- Published:
- 06.23.08 / 8am
- Category:
- Uncategorized

1 Comment
Jump to comment form | comments rss [?] | trackback uri [?]