How to include code in flash cards?

I’m able to use /Code, for code but don’t know how to embed it in the answer to a flash card

1 Like

Use Shift + Enter to create a soft line break, and then do /code to insert a code block. This approach won’t let you collapse the rem, specifically the code snippet. What I use ,which I think is cleaner, is to make the content of the rem ‘multi-line’ (so you can have multiple full lines in the back of your card). Then if you put the /code in there, you will be able to completely collapse the rem to hide code snippet.


If it’s just a little piece of code you don’t need the syntax highlighting for, you can also use the quote formatting (``).