-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
File highlight plugin: Support line ranges #1812
Comments
Hooray! thanks for the infoz on how to build... I think this is good to go: #1813 - seems to be working on the page build and I over commented the additions in the source file just in case. 🤓 |
hmm not sure why this time it seems to be failing checks. any insight? #1813 |
If the requirement is 1-4 lines are highlighted green and 5-8 lines are highlighted red, what should I do? |
Closed by d38592c, |
Description
When writing tutorials, it's useful to only display parts of a file, so only line x to line y. The File highlight plugin should support this functionality.
The idea is that you can add an additional
data-range
attribute to the<pre>
and it will only display the lines in that range. E.g.data-range="1,5"
.This should be compatible with Line numbers.
Continuation of #1810
The text was updated successfully, but these errors were encountered: