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.
Preview
Component.vue
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.
Preview
Component.vue
Variables
For indicating variables use the HTML5 <var>
tag.
Preview
Component.vue
User Input
You can use the <kbd>
to indicate input that is typically entered via keyboard.
Preview
Component.vue
Sample Output
You can use the <samp>
for indicating sample output from a program.
Preview
Component.vue