Skip to main content
All CollectionsAuthor Help
How do I turn off line numbering on code snippets in my Leanpub course?
How do I turn off line numbering on code snippets in my Leanpub course?

Keywords: code, code snippet, line numbers, line numbering, code, code sample, code samples

Leanpub Support avatar
Written by Leanpub Support
Updated over a year ago

There is a global setting for code snippet line numbering on the course Theme.

If you select a Custom theme, you’ll see this option:

If you un-tick the box, and scroll to the bottom and click “Update Theme”, then the next time you preview your course, the code snippets should no longer be numbered.

The course Themes page can be found on the course Overview page under Settings:

There's a thread on the Authors Forum covering this topic here.

OK, that's it!


If you have any feedback or questions about this article, please email the Leanpub team about it at hello@leanpub.com!

If you have any questions or thoughts on writing and self-publishing with Leanpub, please join our global community of authors in our Authors Forum here!

Are you interested in self-publishing, and creating your first Leanpub book? Here are some quick tutorials for our most popular writing modes: http://help.leanpub.com/en/articles/3088382-quick-walkthroughs-for-getting-started-on-a-leanpub-book

Are you looking for great deals on Leanpub ebooks, ebook bundles, and courses? Sign up for our Weekly and Monthly newsletter sales here!

Subscribe to our YouTube channel here: https://www.youtube.com/leanpub

Please subscribe to our YouTube channel here: https://www.youtube.com/leanpub

You can also follow Leanpub in lots of other places!


Did this answer your question?