Code
Inline code
Use the <code> tag to denote snippets of code.
Any angle brackets will need escaping with < and >.
var foo = 'bar';
<code>var foo = 'bar';</code>
Code block
Use the <pre> tag to denote multiple lines of code, or where formatting need to be preserved. Any angle brackets will need escaping with < and >.
Use .bsk-pre-scrollable to fix the height of code block and add horizontal scrolling.
var foo = 'bar'; var baz = foo;
<pre>
var foo = 'bar';
var baz = foo;
</pre>
Variables
Use the <var> tag for indicating variables.
e = mc2
<var>e</var> = <var>m</var><var>c</var><sup>2</sup>
User input
Use the <kbd> tag to indicate keys a user should press.
Type ls to list he contents of the current directory.
Type <kbd>ls</kbd> to list he contents of the current directory.
Sample output
Use the <samp> tag for indicating the output of a program.
Hello World!
<samp>Hello World!</samp>