From: Patrick Spence Date: 2005-01-14T08:07:47+09:00 Subject: Re: Why "pre" AND "code" tags in Textile Markup? I'd like to clarify a few things. The
 tag's purpose is to
display pre-formated text exactly as input. Normal HTML will ignore
leading, trailing, and consecutive whitespace, but inside 
 tags,
the tabs and whatnot are all rendered on-screen. Also, the 
 tag
typically renders the text in a monospace font.

The  tag also renders text in a monospace font, but (to the best
of my knowledge) doesn't do to whitespace what 
 does. It also
adds additional semantic meaning to the text: "This text is code."


On Fri, 14 Jan 2005 01:15:47 +0900, Andreas Semt  wrote:
> Both tags are used in conjunction. And *now* i know why!
> The "pre" tag indents the whole content of the "code" tag. Without "pre"
> it's all at the beginning of the line, not indented. "pre" creates an
> indented block with formatted text, "code" just prints formatted text,
> nothing more.