Does anyone know how hard it is to write a code highlighting mode for vim where it uses normally uses latex highlighting, and then switches to C or Python or whatever programming highlighting inside special delimiters, like "\code{}"? Then I can just write a perl script to mimic tangle and weave, creating code-only and latex-only text files.