Discourse Meta
如何为代码块添加行号?
支持
merefield
(Robert)
2024 年10 月 8 日 22:42
3
该主题包含他们使用的 CSS,您可以在自己的本地组件中进行试验。
请参阅此帖子及之后的内容:
可惜的是,没有人将其打包成 GitHub 上的主题组件以便于使用?
3 个赞
在话题中显示帖子
相关话题
话题
回复
浏览量
活动
Is it possible to show line numbers in code block?
Support
8
7011
2022 年1 月 4 日
Code-block line numbers
Theme component
code
18
553
2025 年3 月 3 日
Plugins for writing coding text in the topics
Support
7
1112
2020 年7 月 11 日
Posting code or preformatted text
Using Discourse
how-to
2
5271
2025 年10 月 8 日
Click To Edit
Plugin
27
814
2025 年8 月 10 日