Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Even if I use syntax highlighting and like it very much, I don't think it is appropriate for code posted here.
First of all, some monks have said here that they do not like syntax highlight, so I guess you will find the first critics for your idea there.
And then there is the big question: which colorscheme should the monastery use? For example, the code you just posted is unreadable on my white background, and there are many different looks (or color themes) one can choose from the user preferences. You can even use your own stylesheet to define your own colors.
With so many choices for the colorscheme of the site, syntax highlight for the code posted seems like too much trouble to be worth. Besides, you can always d/l the code and open it in vim ;)

hope this helps,


In reply to Re: syntax highlighting of code in perlmonks forums by CukiMnstr
in thread syntax highlighting of code in perlmonks forums by aquarium

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-03-29 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found