Formatting the VERBATIM blocks as C would save me a lot of headaches. Probably just need to use regular expressions to search for VERBATIM and ENDVERBATIM and format everything in between as C.