-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Is your feature request related to a problem? Please describe.
Often times one only wants to display several lines of code. Displaying these lines without context could confuse the reader. Displaying them with surrounding lines could lead to reader cut and pasting duplicated code. Is there a way to "hide" contextual lines of code by default but reveal them, properly formatted and syntax highlighted, with the click of a button?
Describe the solution you'd like
Like this: https://rust-lang.github.io/mdBook/format/theme/syntax-highlighting.html#hiding-code-lines
Describe alternatives you've considered
To show the contextual lines commented out, but then it wouldn't be properly formatted and syntax highlighted and could be confusing.
Additional context
Add any other context or screenshots about the feature request here.