# 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:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Rapekas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_rapekas/32/248924_2.png) [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)\
**Post date:** [September 22, 2021, 7:44am UTC](https://meta.discourse.org/t/is-it-possible-to-show-line-numbers-in-code-block/204178/1 "2021-09-22T07:44:23Z")

</div>

Hi, I use markdown (mostly, this is Typora software to create and export to PDF) to create documentation. I use the following code to show line numbers in code blocks:

```plaintext
{.language .numberLines}

```

Example code:

 ![изображение](https://global.discourse-cdn.com/meta/original/3X/9/2/928b0401bdc2460ba675cf8c8dd69b0d929a2dca.png)

result:

 ![изображение](https://global.discourse-cdn.com/meta/original/3X/3/4/3447b0a3685149d61f436b55ff465398049a7d56.png)

Also I use a forum to publish announcements and I would like to share some code in forum posts. But seems this trick doesn’t work in Discourse :(. Is there any way to show line numbers in code blocks of the forum?

---

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