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 week 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!

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:

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:

Please subscribe to our YouTube channel here:

You can also follow Leanpub in lots of other places!

Did this answer your question?