The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,497 other followers

Formatted sourcecode in WordPress: uses SyntaxHighlighter 3.0; complete list of supported languages

Posted by jpluimers on 2011/01/18

In the past I wrote a few blog posts on posting sourcecode in WordPress.

Nick Hodges‘ last Flotsam and Jetsam blog post pointed me to the SyntaxHighlighter JavaScript that is used by WordPress and many other engines/sites.

Their site contains an even more elaborate list of supported languages.

I had the basic list right in my last post, but was missing all the aliases (which often are easier than the longer proper names).

This is the new table adapted from their list:

Language “Brush aliases” Language “Brush name”
as3, actionscript3 ActionScript3
bash, shell Bash/shell
cf, coldfusion ColdFusion
c-sharp, csharp C#
cpp, c C++
css CSS
delphi, pas, pascal Delphi
diff, patch Diff
erl, erlang Erlang
groovy Groovy
js, jscript, javascript JavaScript
java Java
jfx, javafx JavaFX
perl, pl Perl
php PHP
plain, text Plain Text
ps, powershell PowerShell
py, python Python
rails, ror, ruby Ruby
scala Scala
sql SQL
vb, vbnet Visual Basic
xml, xhtml, xslt, html, xhtml XML

The left column can be used as the language=’xx’ parameter in a sourcecode block.
The right colum links to the JavaScript source that implements that particular brush.

–jeroen

5 Responses to “Formatted sourcecode in WordPress: uses SyntaxHighlighter 3.0; complete list of supported languages”

  1. Do they support “” in Delphi code finally?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: