Thanks for all the responses.

Although many mentioned uses of code that are for snippets, , program output, etc., this could be resolved with a new tag, such as <lit>stuff here</lit>, which would act like code tags in everyway except trying to compile the ontents.

The issues of code that runs in BEGIN blocks is much tougher. This would have to be dealt with or disabled, diminishing the usefulness of this tool.

As far as people posting in other languages, screw 'em, there are no other languages. JUST KIDDING!

An additional problem: if perlmonks is on *NIX, (Netcraft indicates FreeBSD) Win32:: modules have no chance of working.

If this were to be implmented at all, it would have to be an advisory, rather than a requirement.

Thanks again, everyone.

--Bob Niederman, http://bob-n.com

In reply to Re: Require everything between innermost <code></code> tags to compile. by bobn
in thread Require everything between innermost <code></code> tags to compile. by bobn

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.