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

Highlight line in code block #130

Closed
seshrs opened this issue Sep 21, 2021 · 2 comments
Closed

Highlight line in code block #130

seshrs opened this issue Sep 21, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@seshrs
Copy link
Member

seshrs commented Sep 21, 2021

It would be nice if it were possible for the spec to highlight a particular line (or lines) in a code block for emphasis.

Something similar to GitHub highlighting a line when you click the line number in a file.

This is tricky because the Jekyll default code formatter (Rouge) doesn’t support it, and neither do traditional markdown code blocks.

@seshrs seshrs added the enhancement New feature or request label Sep 21, 2021
@awdeorio
Copy link
Contributor

One example of where such a feature would be useful is the EECS 485 Threads and Sockets in Python tutorial, which contains several long examples. It would be nice to explain certain lines from within those examples. Moreover, it would be cool if you could highlight different lines in different colors. Then, use those colors in the text to explain.

@seshrs seshrs added this to the WN 2022 milestone Sep 27, 2021
@seshrs seshrs added this to Planned (WN 22) in Idea Board Sep 27, 2021
@seshrs
Copy link
Member Author

seshrs commented Oct 9, 2021

Closed by #131.

@seshrs seshrs closed this as completed Oct 9, 2021
@seshrs seshrs moved this from Planned (WN 22) to Done (WN 22) in Idea Board Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants