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

How to show EVERY line number? #22

Closed
PhoxKiD opened this issue Aug 3, 2012 · 6 comments
Closed

How to show EVERY line number? #22

PhoxKiD opened this issue Aug 3, 2012 · 6 comments

Comments

@PhoxKiD
Copy link

PhoxKiD commented Aug 3, 2012

No description provided.

@LeaVerou
Copy link
Member

LeaVerou commented Aug 3, 2012

Not possible at the moment.
Could you explain why do you think it’s needed? What does it help for? I didn't include such functionality, because I think it's one of those things that add visual noise, without actually being useful most of the time (there is the line highlight plugin for when some line numbers are actually needed) and we're just used to them.

I am considering to add the functionality of seeing the line number on hover though, in the line highlight plugin.

@LeaVerou LeaVerou closed this as completed Aug 3, 2012
@LeaVerou LeaVerou reopened this Aug 3, 2012
@sherblot
Copy link
Contributor

sherblot commented Aug 3, 2012

Hello,

Displaying all the lines can be very useful for some reasons:

  • It avoid to have to find all the lines numbers using an external app. That can be time consuming when you have long codes and a lot of lines to highlight/refer to (I can be kinda lazy I know :) ).
  • It will help to easily refer to some part of the code we don't want to "line highlight" for some reason (reference, notice, out of the scope of an article, etc.)

If you are interested I have a 8 lines piece of code improvement for the Line Highlight plugin which do the job using data-line='*'. In that way, the all lines display will be an option.

@LeaVerou
Copy link
Member

LeaVerou commented Aug 3, 2012

Hi,

@martinvium
Copy link

Hi,

Line numbers on hover sounds awesome, and would solve a problem im facing. Any news on that or any pointer on how you want it implemented (in which case i might do it my self)?

@martinvium
Copy link

There is the problem of mobile devices, which cannot hover. Maybe a hook could be provided, which would allow enabling line numbers for mobile devices or a button if people prefer so...

@Golmote Golmote mentioned this issue Dec 13, 2014
@LeaVerou
Copy link
Member

Closing, see #425

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

4 participants