# 代码块中可以显示行号吗？

**URL:** <https://meta.discourse.org/t/is-it-possible-to-show-line-numbers-in-code-block/204178>\
**Category:** Product Support\
**Created:** [2021 年9 月 22 日 07:44 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:** 3

<div class="post-metadata">

作者： ![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)\
发布日期： [2021 年9 月 25 日 15:18 UTC](https://meta.discourse.org/t/is-it-possible-to-show-line-numbers-in-code-block/204178/3 "2021-09-25T15:18:41Z")

</div>

你好，Kris，非常感谢你的参考！

我尝试通过主题自定义应用 [一个插件](https://github.com/wcoder/highlightjs-line-numbers.js/)，但未成功。或许有人熟悉如何在主题中使用自定义 JS/CSS，可以提供帮助 🙂 。

---

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