[Ilugc] [Tip] Easily Convert Code To HTML

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Wed Jul 14 07:31:16 2010

On Wed, Jul 14, 2010 at 12:27 AM, 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.

Brilliant tip.

Before doing that try these:

:sy on

:se nu

:se background=dark

-Girish


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

SpamCheetah Spam filter:
http://spam-cheetah.com

Other related posts: