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

Is it possible to start line numbering from something other than 1? #3050

Closed
mattgodbolt opened this issue Nov 7, 2021 · 4 comments
Closed

Comments

@mattgodbolt
Copy link
Sponsor

I'm using two panels side-by-side to show a ~20 line function in two parts. It would be great if I could start the line numbering of the second pane from a non-1 value. I tried setting data-ln-start-from per https://github.com/wcoder/highlightjs-line-numbers.js but it didn't take effect. Is this supported in reveal? Thanks!

@hakimel
Copy link
Owner

hakimel commented Nov 8, 2021

data-ln-start-from isn't supported in reveal.js yet because we're using an older version of the line number plugin (2.6.0). Will take a look at upgrading that soon.

@mattgodbolt
Copy link
Sponsor Author

Thanks so much @hakimel.

@hakimel
Copy link
Owner

hakimel commented Nov 10, 2021

I've upgraded the line numbers plugin now so <code data-ln-start-from="10"> will work if you pull latest master 🚀

@hakimel hakimel closed this as completed Nov 10, 2021
@mattgodbolt
Copy link
Sponsor Author

That's amazing -- thank you @hakimel !

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