Discourse Meta
显示代码更改和评论
贡献
功能
david
(David Taylor)
2019 年12 月 17 日 19:30
8
像这样输入代码块:
```diff 普通的一行 - 已删除的行 + 已添加的行 ```
指定
diff
作为语法,意味着你可以在行首使用
+
和
-
来将行高亮显示为绿色和红色。
3 个赞
在话题中显示帖子
相关话题
话题
回复
浏览量
活动
:cn: Code syntax highlighting 代码的语法高亮
Administrators
chinese-translation
,
content
0
987
2022 年11 月 13 日
Can I highlight some text in a fenced code block?
Support
3
1320
2016 年2 月 25 日
İs it possible to add highlighting options to discourse forum?
Support
1
1316
2021 年7 月 3 日
Code fences don't seem to deal with C comments
Support
26
4885
2015 年10 月 6 日
Plugins for writing coding text in the topics
Support
6
1295
2020 年6 月 11 日