Guys,

This is simply amazing. Try it and then see! ;)

Fire up vim and open a C file.

$ vim foo.c
:hardcopy %.ps

$ps2pdf14 foo.c.ps

$ xpdf foo.c.pdf

What do you see?

In case you don't have syntax highlighting enabled by default, you can
:sy on

before the :hardcopy step.

Here is a great sample:

http://gayatri-hitech.com/Misc/sqlex.c.pdf

Do you guys know any other way to create color PDF of syntax highlighted code?

I dunno any.

Enjoy!

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
To unsubscribe, email [email protected] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to