Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: HTML: Syntax highlightning for perl-Code

by bobn (Chaplain)
on Jul 24, 2003 at 12:07 UTC ( [id://277510]=note: print w/replies, xml ) Need Help??


in reply to HTML: Syntax highlightning for perl-Code

This looks promising:

perltidy

I've only played with this a little, just now. You'll want to read the doc.

I've just used this command line:  perltidy -html -nss -html-color-keyword=ff000000  somefile.pl The doc says -nss should only be neeeded for older (per-NS4) browsers, but I didn't get color without it, even in Mozilla 1.2.1. However, the doc also advised not using the -html-color options and editting the style-sheet - it looks like if you don't want to edit the style-sheet, then using the -html-color and the -nss options are the way to go.

Also, it produced some pecuoiar error messages. On the positive side, it sed pod2html, so also produced html for the pod sections. --Bob Niederman, http://bob-n.com

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://277510]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2024-04-23 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found