Skip to content

Preformatted Text ( pre )

Olivier Nizet edited this page Sep 24, 2024 · 2 revisions

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>

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;