Discourse Meta
如何为代码块添加行号?
支持
Lilly
(Lillian Louis)
2024 年10 月 8 日 23:09
11
编辑:好的,我快速制作了一个主题组件。稍后我会添加一些设置来控制背景和文本颜色。
该图像显示了一个基于文本的界面,其中包含用于 JavaScript 函数的代码片段,展示了 for 循环和事件监听器基类型的使用。(由 AI 题注)
805×632 52 KB
10 个赞
在话题中显示帖子
相关话题
话题
回复
浏览量
活动
Is it possible to show line numbers in code block?
Support
8
6992
2022 年1 月 4 日
Code-block line numbers
Theme component
code
18
551
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
5261
2025 年10 月 8 日
Click To Edit
Plugin
27
813
2025 年8 月 10 日