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: add global command line options to turn on source code line numbers #1287

Open
xiaohanyu opened this issue May 8, 2014 · 5 comments

Comments

@xiaohanyu
Copy link

Hi,

Is there any way to enabled line numbers for source code? I think it is useful to add this as a global command line option and I think it should not be too hard to implement this.

Thanks!

@jgm
Copy link
Owner

jgm commented May 17, 2014

@xiaohanyu
Copy link
Author

Oh, I know, thanks!

@jgm jgm closed this as completed in b371e83 Jun 17, 2014
@jgm jgm reopened this Jun 17, 2014
@jgm
Copy link
Owner

jgm commented Jun 17, 2014

I now see that this isn't what you were asking about -- rather, you wanted a global option.
Reopening.

@mb21
Copy link
Collaborator

mb21 commented Feb 2, 2019

If I understand this correctly, we do have line number on code blocks now, right? For LaTeX, use --listings, for HTML use an attribute like {.numberLines} on the code block.

@mb21 mb21 closed this as completed Feb 2, 2019
@jgm jgm reopened this Feb 2, 2019
@jgm
Copy link
Owner

jgm commented Feb 2, 2019

The request was for a global option to do this (not requiring adding an attribute to each code block).
We don't have that.
Of course, it could be done with a lua filter, which adds the attribute to each code block, and maybe that's sufficient?

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

4 participants