Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark highlighted code? #125

Closed
4 tasks
Tracked by #81 ...
badlydrawnrob opened this issue Jan 29, 2024 · 2 comments
Closed
4 tasks
Tracked by #81 ...

Mark highlighted code? #125

badlydrawnrob opened this issue Jan 29, 2024 · 2 comments

Comments

@badlydrawnrob
Copy link
Owner

badlydrawnrob commented Jan 29, 2024

Work in progress

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

  • Optionally add class to blur everything but the Keypoint note on Simple reverse card
  • Optionally highlight a line (or lines) of code
  • Optionally blur out everything but the answer line

Current problems

  • A particular line of code that's the answer isn't immediately obvious
    • Blur out every <span> except the one we want made obvious?

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
Copy link
Owner Author

viewSizeChooser

Screenshot 2024-01-31 at 22 20 02

@badlydrawnrob
Copy link
Owner Author

Screenshot 2024-02-01 at 18 50 32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant