in reply to Code Highlighting in the code tag
It sounds like an interesting exercise, but one that wouldn't be particularly nasty: there are already syntax-coloring filters for perl out there (consider that both vim and cooledit have them, and cooledit has the peculiar misfortune of being written in python). It shouldn't require much more than turning the ANSI escape sequences in the syntax-highlighting routines in vim into the corresponding <SPAN> tags in HTML. Getting <SPAN> recognized inside of <CODE> is another matter altogether -- <CODE> is designed to indicate to the browser that as much as possible within the block is to be treated literally.
Spud Zeppelin * spud@spudzeppelin.com
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Code Highlighting in the code tag
by mischief (Hermit) on Aug 10, 2001 at 12:11 UTC | |
Re: Re: Code Highlighting in the code tag
by Beatnik (Parson) on Aug 10, 2001 at 03:12 UTC |