# How to add line numbers to code blocks?

**URL:** <https://meta.discourse.org/t/how-to-add-line-numbers-to-code-blocks/329970>\
**Category:** Product 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:** 1

<div class="post-metadata">

**Author:** ![jmsachs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jmsachs/32/107682_2.png) [@jmsachs](https://meta.discourse.org/u/jmsachs)\
**Post date:** [October 8, 2024, 10:31pm UTC](https://meta.discourse.org/t/how-to-add-line-numbers-to-code-blocks/329970/1 "2024-10-08T22:31:44Z")

</div>

I found this post from 2021 [Is it possible to show line numbers in code block?](https://meta.discourse.org/t/is-it-possible-to-show-line-numbers-in-code-block/204178) but no idea how to apply it.

- Is this option built into Discourse? If so, how do I specify this in Markdown?
- If it is not built into Discourse but is a plugin, where is the information on this plugin?

---

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