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

Add support for linenostart #22

Closed
bep opened this issue Sep 23, 2017 · 2 comments
Closed

Add support for linenostart #22

bep opened this issue Sep 23, 2017 · 2 comments

Comments

@bep
Copy link
Contributor

bep commented Sep 23, 2017

I know I'm pushing it in the feature request department, but I assume this should be easy to add.

In Pygments, the flag is called linenostart -- which when set makes the line number start at a different value than the default 1. I assume you can add it as an argument to WithLineNumbers.

@alecthomas
Copy link
Owner

I did see that in Pygments, but couldn't really understand what it is for. What is the use case for it?

@bep
Copy link
Contributor Author

bep commented Sep 23, 2017

What is the use case for it?

If I want to document some existing big Java class (or whatever) and copy and paste, say, lines 46-200, into my documentation. In that case it would make sense to have it start at counting from 46 so it matches the original file.

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