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

[feature request] Option to display line numbers on uppermost line of the corresponding code-line #18

Open
AdiWeit opened this issue Jan 3, 2024 · 1 comment

Comments

@AdiWeit
Copy link

AdiWeit commented Jan 3, 2024

I think especially when the code is written pretty tight like in my pseudo-code, it could be helpful to have an option to display the line number on the uppermost line of the corresponding code-line, so it is clear when the next code line begins. So in my example below, the 7 would be directly below the 6.
If this is already implemented and I am to dumb to find it I am sorry to bother you with this.

grafik

@platformer
Copy link
Owner

I've considered adding this before. What I'd really like to do is just have the line numbers be vertically centered with the first line of the associated algorithm step, since it would look prettier when line numbers have a smaller font size than the algorithm text.

Doing what I said above, or adding a line-number-align option are both technically possible right now. However, there are so many small improvements that I'd like to make, and I've come to dislike the current quality of the code, so I'm waiting for an opportunity to do a major refactor. I'll address this whenever that happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants