Code syntax highlighting when using WordPress and MarsEdit

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.

<pre class="brush: ruby">

Other brushes:

    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/

Leave a Reply

Your email address will not be published. Required fields are marked *