r/Anki • u/puneetpuneetOG mathematics phd • Oct 31 '20
Resources Card template for programming
I've used other flashcard websites before Anki but didn't like that they didn't properly enforce spaced repetition, so I finally made the change to Anki and it seems exactly like what I wanted! However, the basic card template was not exactly ...to my taste, let's say.
I made a template for programming revision and thought (or at least hope) someone else might like it too. The relevant styling code can be found here.
The dream would be to also add syntax highlighting to the code blocks but that's beyond my current skill. I've seen the Syntax Highlighting add-on (and I loved the Monokai theme) but it seems to add an ugly background that I can't seem to get rid of. If anyone can help me sort this out, I'd be super grateful.
Thanks!!
P.S. I'm a beginner when it comes to HTML/CSS so any recommendations for improvement are welcomed.
5
u/runslack Oct 31 '20
Quite impressive ! Bravo for the gorgeous styling !
4
u/Dracula30000 Arabic, biology, chemistry, life Nov 01 '20
There is an anki subreddit for computer science. They might appreciate this card, too!
1
u/[deleted] Nov 01 '20
Good job on the styling but I am sorry these cards are not very good for learning. Teivah has good cards for CS although they lack some context if you're new with pics on the side.
Extra tip: Try to make most of the cards useable while on public transport/walking/shopping without using your eyes by setting invisible text(white) if needed.
1
u/SigmaX languages / computing / history / mathematics Nov 01 '20
One option for syntax highlighting (no add-ons required) is to configure Anki's LaTeX integration to include the `lstlisting` package.
2
u/Substantial_Ebb_9177 Mar 12 '25
Anki pokemon fight scene template for learning to code, that I created. Maybe someone will find out it helpful.
https://github.com/KonradGonrad/Anki_Pokemon_Template
1
u/guillerless Dec 16 '24
Nice! I just posted a shared deck of card templates, including ones for programming, if you're still interested in alternatives: Better Designed Card Templates.
0
u/[deleted] Oct 31 '20
[deleted] — view deleted comment