Code

Examples for displaying inline and multi-line blocks of code.

Inline

Wrap inline snippets of code with <code>. Be sure to escape HTML angle brackets.

Inline Code

For example, <section> should be wrapped as inline.

Block

We use <pre> for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the .-scrollable modifier, which will set a max-height and provide a y-axis scrollbar.

Code Block
<p>Sample text here...</p>
<p>And another line of sample text here...</p>

Variables

For indicating variables use the HTML5 <var> tag.

Variables

y = mx + b

User Input

You can use the <kbd> to indicate input that is typically entered via keyboard.

User Input

To switch directories, type cd followed by the name of the directory.
To edit settings, press ctrl + ,

Sample Output

You can use the <samp> for indicating sample output from a program.

Sample Output

This text is meant to be treated as sample output from a computer program.