website logo
⌘K
Quick Start
Getting Started
Create notes
Organize notes
Search
Commercial License
Getting to know the app
Home
Tabs
Stacks
Pinned
Keyboard Navigation
Organize, when you need it
Markdown
Colors
Mark as done
Move to pinned stack
Move to any stack
Reorder notes
Delete a note
Become a power user
Learn keybindings
Customize keybindings
Focus Stashpad
Customize theme
Customize timestamp display
Write to a different destination
Code blocks
Use Cases
Tame context-switching
Keep your todos tidy
Jump into a meeting note quickly
1-1s with your team
Unload your mind with brain-dumps
Get in flow with pomodoros
Getting things out
Copy and paste
Export
FAQ
Docs powered by archbee 
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.



Document image



Multi-line code block

To create a code block in Stashpad, wrap your text with ```.



Text
|



You can add syntax highlighting if you like.

Tip

Each ``` needs to be on it's own line for the code block to render correctly.



JS
|



Copy code in one click

You can then copy your code in on click. No need to drag your mouse over the text.



Copy code in one keypress

You can also copy your code out in one keypress with {.



Code span

To create a code span, surround your text with single backticks.

Updated 28 Dec 2022
Did this page help you?
Yes
No
UP NEXT
Tame context-switching
Docs powered by archbee 
TABLE OF CONTENTS
Multi-line code block
Tip
Copy code in one click
Copy code in one keypress
Code span