ali

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 WordPress.com 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!"
Advertisements
%d bloggers like this: