Guide › Templates

Verbatim

Add verbatim to an element and everything inside it is shown as text: no holes, tags or directives. That's how every code sample on this site is written.

<code verbatim>
  <p>Hello, {{ name }}!</p>
</code>

The content can't contain the element's own closing tag. This sample contains </code>, so it sits in a <pre verbatim> instead.