debug output
correct content-type
DRY up the highlighting code