Syntax highlighting reloaded

      1 Comment on Syntax highlighting reloaded

Recently (well, yesterday to be exact) I was really sold on a a syntax highlighting plugin for WordPress called WP-Syntax. Basically, I am still. It is still easy to use, looks good and comes with a huge variety of supported languages.

But if you ask the WordPress-guys it isn’t first choice. In their FAQ they point you to Alex Gorbatchev’s syntaxhighligher Google Code project. There are quite a lot of implementations availible including three different plugins for WordPress. So I looked a little closer at SyntaxHighlighter Evolved and I must admit that it is really nice.

public class Hello {
   public static void main(String[] args) {
      /* This line is highlighted. */
      System.out.println("Hello world!");
   }
}

Especially the line highlighting is very nice. It doesn’t support as many languages as WP-Syntax, but as I mainly use it for Java snippets that shouldn’t be a major problem.

1 thought on “Syntax highlighting reloaded

  1. Pingback: /dev/blog » SyntaxHighlighter Evolved and line-height

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.