Skip to content

Highlighting code within an example code block #1068

@melissachen2000

Description

@melissachen2000

What are you trying to do that you can't?

When Adrienne writes tutorials in the how-to space, she teaches how to write the program incrementally, meaning that a few new lines of code are added with each code block. It would be useful to have some way of highlighting what code is new for that code block and what code is repeated from a previous code block.

What is your idea?

We can generalize this to the idea of highlighting a few lines of code within a code block. My suggestion is to have some way of annotating each line of code to determine if it is highlighted or not. Then, in the preview, there is a background for or a border around that line of code to help it stand out.

Metadata

Metadata

Labels

learningAnything related to the tutorial or how to contentneeds designWhen an enhancement is not yet designed
No fields configured for improvement.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions