# Code-block line numbers

**URL:** https://meta.discourse.org/t/code-block-line-numbers/330130
**Category:** Theme component
**Tags:** code
**Created:** [October 9, 2024, 5:45pm UTC](https://meta.discourse.org/t/code-block-line-numbers/330130 "2024-10-09T17:45:25Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![robbie.morrison](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robbie.morrison](https://meta.discourse.org/u/robbie.morrison)
#### Post date: [October 14, 2024, 6:19pm UTC](https://meta.discourse.org/t/code-block-line-numbers/330130/13 "2024-10-14T18:19:39Z")

</div>

@merefield @Lilly Many tx. I needed to add this theme component to my “default” theme. As covered here: [adding components to a theme](https://meta.discourse.org/t/installing-a-theme-or-theme-component/63682#adding-theme-components-to-a-theme-2). And it works (noting I had earlier added the wrong screenshot):

 ![The image is a screenshot of a computer interface showing line numbering. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/1/6/0/16080c5611d059a6123cfbbac48bd9cb414f3735.png)

A couple of comments about the documentation. The correct location is, I believe: Components ▸ Customise ▸ Themes. And the section on adding to themes (see URL above) sounds somewhat more discretionary than it is. Perhaps this wording would be better: "You will need to explicitly add your theme competent to a theme before it will become operational. That includes the “default” theme.

Thanks to everyone for their interest and time. I&nbsp;also have a small bug report for my next posting.

---

_[View the full topic](https://meta.discourse.org/t/code-block-line-numbers/330130)._
