plain text python source -> HTML syntax highlighted source
Jim Richardson
warlock at eskimo.com
Tue May 2 00:19:22 EDT 2000
On Mon, 1 May 2000 10:34:11 -0600 ,
Mike Steed, in the persona of <MSteed at altiris.com>,
brought forth the following words...:
>> From: Ivan Van Laningham [mailto:ivanlan at callware.com]
>> Sent: Monday, May 01, 2000 9:38 AM
>> To: Python Mailing List
>> Subject: Re: plain text python source -> HTML syntax
>> highlighted source
>>
>>
>> Hi All--
>>
>> Mike Steed wrote:
>> >
>> [snip]
>> > This is probably not what you were thinking of, but Vim can
>> > do this. Open your file and choose Syntax->Convert to HTML.
>> > The output is an HTML-ized version of your file with whatever
>> > syntax highlighting you have defined.
>>
>> I didn't know you could do this. This is really cool, but be warned
>> that it does not expand tabs into spaces, so the html version may
>> *still* not look exactly like you want. ...
>
>Hmm, maybe in an older version. The script (syntax/2html.vim) that comes
>with Vim 5.6 converts tabs to spaces according to your current 'tabstop'
>setting.
>
Just when I think Vim has no more surprises for me:)
(Jim, who just wishes Vim used python as a macro language.)
--
Jim Richardson
Anarchist, pagan and proud of it
WWW.eskimo.com/~warlock
Linux, because life's too short for a buggy OS.
More information about the Python-list
mailing list