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
Filed under: .NET, Batch-Files, C#, CSS, Database Development, Delphi, Delphi for PHP, Development, HTML, HTML5, Java, PowerShell, RegEx, Scripting, SQL, VBS, Web Development, WordPress, XML, XML/XSD, XSD
