[kanchilug] [Tip] Easily Convert Code To HTML

  • From: "Tha.Suresh" <jemenisuresh@xxxxxxxxx>
  • To: KanchiLug <kanchilug@xxxxxxxxxxxxx>, ILUG-C <ilugc@xxxxxxxxxxxxx>
  • Date: Wed, 14 Jul 2010 00:27:17 +0530

 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:

  • » [kanchilug] [Tip] Easily Convert Code To HTML - Tha.Suresh