<pre>

Preformatted text is text that contains line breaks and spaces that are intended to be preserved at publication time.

Usage information

The <pre> element is often used for ASCII diagrams and code samples. It is the specialization base for the @codeblock element in the Technical Content edition.

Processors SHOULD preserve the line breaks and spaces that are present in the content of a <pre> element.

The contents of the <codeblock> element is typically rendered in a monospaced font.

The following attributes are available on this element: display attributes, universal attributes, and @xml:space.

Example

The following code sample shows preformatted text that contains white space and line breaks. When the following code sample is published, the white space and line breaks are preserved.

<pre>
          MEMO: programming team fun day
Remember to bring a kite, softball glove, or other favorite
outdoor accessory to tomorrow's fun day outing at Zilker Park.
Volunteers needed for the dunking booth.
</pre>