How do I post OCaml code to my WordPress blog?

In Uncategorized on October 26, 2009 at 2:15 pm

In an earlier entry, I had posted some CSS code.  This works well enough, except doesn’t support syntax highlighting for OCaml. After some searching, I couldn’t find an online CGI where I could post OCaml and easily get a nice colored version.

So, I’m falling back to Emacs along with htmlize.

Here is an example:

(* This is a comment *)
let () =
  print_endline "Hello, World!"
%d bloggers like this: