[Ilugc] syntax highlighting

  • From: krishnakumarme@xxxxxxxxx (krishna kumar)
  • Date: Thu, 24 Feb 2011 09:37:38 +0530

thanks, i will workout and say the result




On 2/22/11, Girish Venkatachalam <girishvenkatachalam at gmail.com> wrote:

On Tue, Feb 22, 2011 at 4:09 PM, krishna kumar <krishnakumarme at gmail.com>
wrote:
hello sir

i am krishna kumar from kovai

may i know how to copy the contents from a program file to another doc
file with syntax lighlighting, to take color print outs, like vi
editor

Vim has everything, not vi.

For PDF,

:hardcopy > %.ps

$ps2pdf14 foo.ps

For HTML,

:TOhtml

For syntax highlighting

:sy on

in ~/.vimrc

-Girish

--
Gayatri Hitech

http://gayatri-hitech.com
girish at gayatri-hitech.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



-- 
BY[E]

     KK

Other related posts: