in reply to Require everything between innermost <code></code> tags to compile.

Require everything between innermost <code></code> tags to compile.

And when someone posts a Java or Python snippet as a point of comparison with equivalent Perl code? Compile the other language? Or when someone uses <code> tags to format representative script output? Or when someone posts small A vs. B snippets that aren't intended to be compiled as is?

I think this is a problem better solved by human intervention, whether it be the brain of the reader, or the harassment leveled at the writer when necessary.

  • Comment on Re: Require everything between innermost <code></code> tags to compile.

Replies are listed 'Best First'.
Re: Re: Require everything between innermost <code></code> tags to compile.
by ajdelore (Pilgrim) on Aug 04, 2003 at 16:01 UTC

    Strictly speaking (strict HTML, that is) <code> tags should not contain output... Something like <pre> would be more appropriate, although IIRC those tags are deprecated at perlmonks.

    Nevertheless, I agree with other monks on this idea. Too risky, and too problematic to be workable.

    </ajdelore>

      <pre> is not deprecated, but can easily cause scrollbars if you don't pay attention, so their use is discouraged, but not deprecated.

      Makeshifts last the longest.