chebe (
chebe) wrote in
command_liners2009-12-14 10:20 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
vim and syntax-highlighting in reports
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?
no subject
No idea if it works in vi; looks like everything I have, vi is an alias for vim.
no subject
no subject
no subject