When you're studying programming or working with code, it is necessary to be able to paste code examples onto your cards and study them properly. With our Code blocks support this has never been easier
Adding Code blocks
To add a new Code block, just tap the Code tool. If you don't see it, you might want to check if it is hidden as explained here.
On the web version, you can also use the Cmd + Option + C shortcut (for Mac) or Shift + Option + C (for Windows).
By default, JavaScript is selected. However, if you tap it you can choose any other language that you need for your card.
You can either paste the necessary block of text or write it yourself. The syntax will adjust automatically according to the chosen language.
You can also use the small Copy button to instantly copy the code block to your clipboard.
Enjoy studying!