2009-12-14

chebe: (South Park)
[personal profile] chebe2009-12-14 10:20 am

vim and syntax-highlighting in reports

Hey all, [personal profile] foxfirefey swung by my journal and let me know about this community. I think it's a fantastic idea, so I present to you my humble offering:

Ever wanted to make all that source code in your report/webpage much more readable by adding syntax highlighting, and specified formatting? Well, before you reach for the snapshot tool, try vim.

:TOhtml


Produces a html formatted version of your file, syntax highlighted the way vim does things. Just save it, open in a browser, and copy-paste into your text processor. Voilá!

P.S. I haven't tried vi, anyone know if it works there too?