Skip to content

Multi color highlighting #213

@awdeorio

Description

@awdeorio

Is your feature request related to a problem? Please describe.
Explaining a larger code block is tricky. While highlighting is very helpful when there's one key point, it falls short when you have several points. For an example, see the EECS 485 P4 Sockets and waiting example and explanation.

Describe the solution you'd like
It would be nice if I could highlight several different ranges of lines in several different colors. Then, in the text use some kind of visual clue to refer to the different colors in different paragraphs of the explanation.

Describe alternatives you've considered
The current explanation copy-pastes a few lines at a time. This is less than ideal because the blocks are out of context.

I've also considered referring to line numbers. While this is accurate, it's a little harder to read from the student perspective.

Additional context
I'm very open to suggestions here. Are there other better ways to explain more complex chunks of code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions