Because code blocks are entire Rems of their own, they cannot be placed within the same Rem as a flashcard arrow. This may make it hard to see how to use them in flashcards. Fear not, RemNote’s automatic display of hierarchy on flashcards and its multi-line cards feature still make it easy to create flashcards for code.
Code on the front of a flashcard
To put code on the front of a flashcard – say, to ask comprehension questions about some code or practice spotting an error in it – put the code block first, then indent underneath it and create a question and answer there.
When it comes time to practice the flashcard, you’ll see it just like this:
Code on the back of a flashcard
To put code on the back of a flashcard – say, to practice writing a small snippet of code that accomplishes some task or remembering the name of a library function – write the front of the flashcard as normal, then press Enter to create a multi-line flashcard and create the code block there. A multi-line flashcard with only one line on the back is just fine!
That looks like this when you practice it:
This method works especially well with the Concept/Descriptor Framework: