Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Using vim for highlighting in Perl

by stefp (Vicar)
on Mar 26, 2003 at 17:07 UTC ( #245998=note: print w/replies, xml ) Need Help??

in reply to Using vim for highlighting in Perl

If if you do :help 2HTML, you will get the to documentation about the conversion of an higlighted buffer to the equivalent HTML.

2HTML						*2html.vim* *convert-to-HTML*

This is not a syntax file itself, but a script that converts the current
window into HTML.  Vim opens a new window in which it builds the HTML file.

You are not supposed to set the 'filetype' or 'syntax' option to "2html"!
Source the script to convert the current file: >

	:runtime! syntax/2html.vim
	Warning: This is slow!

After you save the resulting file, you can view it with any HTML viewer, such
as Netscape.  The colors should be exactly the same as you see them in Vim.
Read the doc. There is more to it. I did not tried it though.

-- stefp

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://245998]
[Discipulus]: I miss a bit the sunny balconny of my previous flat.. but since june to september is better facing north
[Corion]: Discipulus: Yeah, I can see that reasoning :) But spending 5 minutes in the sun today quite improved my mood :)
[marto]: lazyweb Q: so an IE window apparently opened via JS with toolbars=no, all other IE instances closed. Click a URL in an email or whatever, and it doesn't open a new window or tab.
[marto]: does JS lock down windows created via to prevent this?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-03-21 11:30 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.