Skip to main content

Code Block

Overview

A code block is an element which is typically used to represent code and is similar to the inline code formatting option, except that it allows for multi-line content. This element is denoted by using ```.

Example Syntax

<!-- Ignore the `\` present, this is simply used to escape the backticks. -->

\```
This is text within a code block.
\```
<pre>
<code>This is text within a code block.</code>
</pre>