badlydrawnrob / anki

Learn to code with Anki — flashcards and themes for all learning levels. Master your programming language of choice!
MIT License
719 stars 61 forks source link

Mark highlighted code? #125

Closed badlydrawnrob closed 2 months ago

badlydrawnrob commented 7 months ago

Work in progress

A demo here Some filters only seem to work on images: i.e: filter: grayscale(20%)

Current problems

An example to work towards?

An example like this one would be a great candidate It's not immediately clear which line I'm talking about. (a) .numberLines (b) highlight line

This guy has done some fancy stuff with highlighting lines of code that might be useful someday in the future. If anyone wants to try stuff like this out (with css, not javascript), feel free to have a go!

Screenshot 2024-01-29 at 21 26 16

Adding <mark> to highlight a line (or many lines)

Adding a <mark> tag is pretty easy. Making sure it's edge-to-edge of the code block isn't.

Screenshot 2024-01-29 at 21 23 13
badlydrawnrob commented 7 months ago

viewSizeChooser

Screenshot 2024-01-31 at 22 20 02
badlydrawnrob commented 7 months ago
Screenshot 2024-02-01 at 18 50 32