Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
> Also, for a moment i thought "wouldn't it be nice if pm could remind you to put codes tags on your stuff when it detects you posted perl code".

actually, I was thinking of mentioning this too.

In the end you only need a heuristic to recognize perl-code (easy) or data (consecutive short lines), this heuristic can be trained with the 100_000 older posts with code tags.

> But half the requests in SoPW are too badly written to be recognized as Perl even by the perl interpreter.

It's possible to run Perl::Tidy in server mode, i.e. without start-up overhead its pretty fast.

It's also possible to add an extra display-format where the reader decides between raw and formatted code.

But that's all fantasy, there are only two gods left who keep this running.

Pmdevs were bugging them already for years to patch a serious JS backdoor in the markup format.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery


In reply to Re^6: Markdown is now supported for comments, experimentally by LanX
in thread Markdown is now supported for comments, experimentally by jdporter

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? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-12-09 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?