Discourse Meta
代码块中意外的代码高亮
产品支持
riking
(Kane York)
2021 年3 月 6 日 00:38
2
这可能是由于代码高亮自动检测不正确所致。您可以通过在代码块开头添加以下内容来禁用它:
```text
在话题中显示帖子
相关话题
话题
回复
浏览量
活动
Be sure to get user input on which language the preformatted text is
UX
2
404
2024 年3 月 23 日
Automatic highlighting fails for some fenced code blocks
Bug
fixed
,
bug
8
254
2026 年7 月 29 日
Support auto-highlighting for preformatted code
Feature
11
3321
2014 年10 月 1 日
Issue with Code Block Formatting in Discourse – Red Text and Unintended Highlighting
Product Support
code
23
708
2024 年8 月 13 日
Default code formatting language varies unexpectedly
Bug
2
1653
2018 年2 月 13 日