-
Notifications
You must be signed in to change notification settings - Fork 127
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
Line numbers in code listings #737
Comments
@ethan-kusters that should probably also be in docc-render? I think it's relatively easy to do, too. |
I'm taking a look ;) So the good news is We just need to figure out how to best tell it to show line numbers, and what level of flexibility we want. If I read the code correctly, it looks for So hypothetically, we could do a few things here:
I feel like option 2 is what's generally expected with markdown-base documentation systems. |
Would this be a good second issue for me to take a look at? I'm trying to learn more about this code base and would love to have something to do while I'm waiting on feedback from my pull request. Admittedly, I'm probably going to need some guidence with attacking this issue, but I'm eager to give it my best shot. 😀 |
Feature Name
Line numbers in code listings
Description
I'd like the ability to optionally show line numbers in code listings.
Motivation
This would be helpful to me when writing documentation around a code listing in order to explain the code. Being able to say "on line 5" without the reader needing to count to line 5 would allow the documentation to be more clear.
Importance
I don't think this is a super important feature but I do believe that it would improve the user experience for folks reading documentation.
Alternatives Considered
My current workaround is to refer to the symbols in the code listing by name in the documentation surrounding the code listing.
The text was updated successfully, but these errors were encountered: