# How to add line numbers to code blocks?

**URL:** https://meta.discourse.org/t/how-to-add-line-numbers-to-code-blocks/329970
**Category:** Support
**Created:** [October 8, 2024, 10:31pm UTC](https://meta.discourse.org/t/how-to-add-line-numbers-to-code-blocks/329970 "2024-10-08T22:31:44Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [October 14, 2024, 5:56pm UTC](https://meta.discourse.org/t/how-to-add-line-numbers-to-code-blocks/329970/13 "2024-10-14T17:56:06Z")

</div>

3 posts were merged into an existing topic: [Code-block line numbers](https://meta.discourse.org/t/code-block-line-numbers/330130/6)

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-line-numbers-to-code-blocks/329970)._
