How to add code syntax highlighting when using WordPress and MarsEdit
1. Install this:
http://wordpress.org/extend/plugins/syntaxhighlighter/
2. Use Format > Customize to create a custom PRE tag class, e.g.
1 |
<pre class="brush: ruby"> |
Other brushes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
ActionScript3 – as3, actionscript3 Bash shell – bash, shell ColdFusion – cf, coldfusion C# – c-sharp, csharp C++ – cpp, c CSS – css Dephi – delphi, pas, pascal Diff – diff, patch Erlang – erl, erlang Groovy – groovy JavaScript – js, jscript, javascript Java – java Perl – perl, pl Plain Text – plain, text PowerShell – ps, powershell Ruby – rails, ror, ruby Scala – scala SQL – sql Visual Basic – vb, vbnet XML – xml, xhtml, xslt, html, xhtml |
http://basilsalad.com/how-to/syntax-highlighting-with-marsedit-on-wordpress/