Skip to content

Hidden lines of code? #185

@eecsreactive

Description

@eecsreactive

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions