in reply to Using GNU diff in a PERL Script

It's not really perfect, but this worked for me: Htmlify code with differences.