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 for line numbers with code blocks #229

Open
brainomite opened this issue Aug 18, 2020 · 5 comments
Open

Feature request: Option for line numbers with code blocks #229

brainomite opened this issue Aug 18, 2020 · 5 comments

Comments

@brainomite
Copy link

It'd be nice to be able to reference line(s) when I write a technical blog post.

@qwtel
Copy link
Member

qwtel commented Aug 19, 2020

Once I revisit the code line highlights, I'm also going to take a look at this.

@LazyRen
Copy link

LazyRen commented Sep 11, 2020

  • after clicking or hover over code block & pressing 'ctrl+a' selects only codes in code block (not whole page).
    This feature is implemented in some code highlights and it's pretty helpful to those who wants to copy-paste code.

@samip5
Copy link

samip5 commented Feb 10, 2021

Once I revisit the code line highlights, I'm also going to take a look at this.

I believe that you did revisit code highlights so how is this looking?

@qwtel
Copy link
Member

qwtel commented Feb 10, 2021

how is this looking?

Not good.

I've had a working prototype, but besides being a really ugly hack, I ran into issues with lines overlapping and line heights not matching up. In the end I've scrapped it for 9.1.

@MilovanTomasevic
Copy link

My template has line numbers in code blocks. It works without problems.

I also had a need for it because it’s more of a technical blog and then I upgraded that option myself.

Now I will see how to include the new version of the template.

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

No branches or pull requests

5 participants