[Ilugc] [Tip] Easily Convert Code To HTML

  • From: masivakumar@xxxxxxxxx (சிவகுமார் மா)
  • Date: Wed Jul 14 07:44:42 2010

On 14 July 2010 00:27, Tha.Suresh <jemenisuresh@xxxxxxxxx> wrote:

 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.



1. Thanks! I installed vim to try this out. Excellent tip.

2. The markup is all ugly with dozens of &nbsp

Ma Sivakumar
????????? ????????? ??? ????????
http://masivakumar.blogspot.com

Other related posts: