Preformatted text (<pre>)

Inside a <pre> tag, the spaces are conserved.
<pre>
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both      spaces and
line breaks
</pre>
pre.jpg

By default, the converter renders them as a single table but you can turn this option off.
This is useful for piece of code like what you see in the blog nowadays.

converter.RenderPreAsTable = false;

prenotable.png

Last edited Apr 20, 2011 at 8:56 PM by onizet, version 4

Comments

No comments yet.