vim and syntax-highlighting in reports
Dec. 14th, 2009 10:20 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Hey all,
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
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?
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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?