RE: Changing coloured vi to html or word doc.
- From: "Gerrard Geldenhuis" <Gerrard.Geldenhuis@xxxxxxxxxxxx>
- Date: Wed, 28 May 2008 17:08:11 +0100
Thanks! That is very cool, it works like a charm. Just need to edit the
default colour scheme but other than that perfect. Bright yellow does
not look very well on white.
Regards
-----Original Message-----highligting
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-
bounces@xxxxxxxxxx] On Behalf Of Ray Van Dolson
Sent: 28 May 2008 16:56
To: redhat-list@xxxxxxxxxx
Subject: Re: Changing coloured vi to html or word doc.
On Wed, May 28, 2008 at 08:43:24AM -0700, Gerrard Geldenhuis wrote:
Hi
Can anyone advice on a method of converting the code (bash)
thenin vim to html or something else that I can use in ms word.
This this:
1. Load the file you want to convert.
2. Enter command mode in vim (hit ESC)
3. Enter in the following:
:runtime! syntax/2html.vim
This should split a new window open containing the HTML version of the
file you were looking at -- syntax highlighting included. You can
save it to an html file.
2html.vim should be part of the vim-common package.
Ray
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- Changing coloured vi to html or word doc.
- From: Gerrard Geldenhuis
- Re: Changing coloured vi to html or word doc.
- From: Ray Van Dolson
- Changing coloured vi to html or word doc.
- Prev by Date: Re: Changing coloured vi to html or word doc.
- Next by Date: getent / group / LDAP problem
- Previous by thread: Re: Changing coloured vi to html or word doc.
- Next by thread: Re: Changing coloured vi to html or word doc.
- Index(es):