I know this has been discussed several times over but I need to have something clarified to me by all my fellow monks.

<code> vs <pre>

<music type=dramatic>
    ** duh duh duhh duhhhhh **
</music>

I use <pre> anytime I am placing any text I want to have formatted (escaped from html formatting annoyances) eg. output, or example diagrams. Anytime I use code that is worthy of being downloaded, used, scrutinized, or even broken but code nonetheless, I place it in <code> tags. Therefore, my point rears it's ugly head (in the form of a question). Is it preferred that *anytime* I want to post any kind of formatted text, code or otherwise, I use the <code> tags? I would prefer not to but then again, I am just a lowly, humble, piece of scrap meat monk among the gurus here. ;)

I have already had a few monks post private messages stating that I should change my <pre>'s to <code>'s. Very frustrating. =)

Thanks guys.

----------
- Jim

  • Comment on here I go again, opening another can of worms...

Replies are listed 'Best First'.
(tye)Re: here I go again, opening another can of worms...
by tye (Sage) on Jun 08, 2001 at 00:34 UTC

    If you use <pre>, then please keep your lines at or below widths of 60 characters each. If you do that, then whether you use <pre> or <code> is a matter of personal taste, whether or not you want the text to be downloadable, and whether you want HTML tags to be quoted or executed.

    Using long lines with <code> is fine but using long lines with <pre> just sucks. (:

            - tye (but my friends call me "Tye")
      Cool. Thanks Tye (does this mean Im a friend? :) I shall keep at or below 60 characters.

      ----------
      - Jim