# Is it possible to show line numbers in code block?

**URL:** <https://meta.discourse.org/t/is-it-possible-to-show-line-numbers-in-code-block/204178>\
**Category:** Product Support\
**Created:** [September 22, 2021, 7:44am UTC](https://meta.discourse.org/t/is-it-possible-to-show-line-numbers-in-code-block/204178 "2021-09-22T07:44:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [September 22, 2021, 1:43pm UTC](https://meta.discourse.org/t/is-it-possible-to-show-line-numbers-in-code-block/204178/2 "2021-09-22T13:43:46Z")

</div>

We use [highlight.js](https://highlightjs.org/) for our codeblocks, and I don’t believe they support line numbers… there’s some rationale in their documentation here: [Line numbers — highlight.js 11.9.0 documentation](https://highlightjs.readthedocs.io/en/latest/line-numbers.html)

They can definitely be useful for reference, e.g., “you can change the font size on line 3”… so if we’re ever looking to move away from highlight.js, that would be one thing to consider.

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-show-line-numbers-in-code-block/204178)._
