[Ilugc] [Tip] Easily Convert Code To HTML

  • From: jemenisuresh@xxxxxxxxx (Tha.Suresh)
  • Date: Wed Jul 14 00:27:52 2010

 Convert Code To HTML Using Vim

If you wrote some elegant code, and want to publish it as a HTML page,
you can easily do that in vim:
In command mode, type this:

? ?:TOhtml

A new buffer will be opened with the HTML source, just save it:

? ?:wq

If the original file name was ?thasucode.c?, you?ll find a new file in
the same directory named ?thasu.c.html?. Open it with your favorite
web browser.


--
Regards,
Tha.Suresh

Kanchi Linux User Group Rocks !!!!
http://kanchilug.wordpress.com

My experiences with Linux are here,
http://thasulinux.wordpress.com

Other related posts: