Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: syntax highlighting of code in perlmonks forums

by f00li5h (Chaplain)
on Jan 06, 2007 at 11:39 UTC ( [id://593291]=note: print w/replies, xml ) Need Help??


in reply to Re: syntax highlighting of code in perlmonks forums
in thread syntax highlighting of code in perlmonks forums

I'm a massive fan of using the particular monk's CSS to determine the hilighting... and providing a seperate option to enable it. (disabled by default)

Perhaps also providing a couple of default styles to get you started, a nice light-on-dark, a dark-on-light etc

even if it was just based on css, without an off switch

.codeblock { background-color: inherit!important; color:inherit!important; }
and boom, the hilighting disappears... and it starts looking like normal text (black on white) Or you could even do something outragious and provide a real user stylesheet to your browser to over-ride these things...
@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-03-28 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found