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.

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.

Variables

For indicating variables use the HTML5 <var> tag.

User Input

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

Sample Output

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