Wed, 01 Jun 2011

Prettified

I've just prettified my blog which means that code snippets will now get syntax highlighting. I did some minor modification so I didn't have to go back and modify previous code posts I've done, but this means plain old code snippets will now get pretty syntax highlighting.

For example:
#!/usr/bin/perl
use feature qw(say);
say "Hello World";
or
public class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello World");
  }
}
If you have a blog, it's a simple matter of enabling some styles and javascript to get it activated, and a minor bit of js hacking to avoid having to specify a class for backwards compatibility.





Colophon

Written using MacVim
Published by Blosxom
Layout: Blueprint CSS