Code

Code and code-like styling.

Inline code

Here is an inline code example.

<p>Here is an inline <code>code</code> example.</p>

Code blocks


<p>Here is an block of code example.  This for
code that has many lines</p>
<pre><code>
&lt;p&gt;Here is an block of code example.  This for
code that has many lines&lt;/p&gt;
</code></pre>

Variables

y = mx + b
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>

User input

To switch directories, type cd followed by the name of the directory.
To edit settings, press ctrl + ,
To switch directories, type <kbd>cd</kbd> followed by the name of the directory.<br>
To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>

Sample output

This text is meant to be treated as sample output from a computer program.
<samp>This text is meant to be treated as sample output from a computer program.</samp>