more useful options | |
PerlMonks |
Re: Code highlighting?by gaal (Parson) |
on Oct 06, 2004 at 16:17 UTC ( [id://397058]=note: print w/replies, xml ) | Need Help?? |
Not directly answering your question, but here's one way to produce colored syntax:
vim has a convert-to-html (or better: convert-to-xhtml) command that can be used to generate htmlified colorized perl. Here's a shell snippet from the vim docs that with a little love could be a lot of help. for f in *.[ch]; do gvim -f +"syn on" +"run! syntax/2html.vim" +"wq" +"q" $f; done This is pretty slow, so I don't know how happy the site maintainers would be happy about it. Plus, it's going to be a mess figuring out color schemes for this :)
In Section
Perl Monks Discussion
|
|