6min
Code blocks
Action | Hotkey |
Create code block | Start your note with ``` |
Create code block with syntax highlighting | Start your note with ```python |
Create code span | Start your note with ` |
Copy code from byte | { |
Stashpad has support for code spans and code blocks, including syntax highlighting. You'll be able to copy your code out in one click or one keypress.

To create a code block in Stashpad, wrap your text with ```.
Text
|
You can add syntax highlighting if you like.
Each ``` needs to be on it's own line for the code block to render correctly.
JS
|
You can then copy your code in on click. No need to drag your mouse over the text.
You can also copy your code out in one keypress with {.
To create a code span, surround your text with single backticks.