我不确定这是否是您想要的答案,因为我没有 iPhone,所以我只能分享我的通用解决方法。我通常会点击 并在其中使用“预格式化文本”按钮。如果您在使用它之前输入了某些内容,它会添加行内代码;如果您在新行上使用它,它会添加一个代码块。您也可以先输入,选择文本,然后使用该按钮。
相关话题
| 话题 | 回复 | 浏览量 | 活动 | |
|---|---|---|---|---|
| Code Blocks on an iPad Mini 2 | 6 | 1924 | 2024 年6 月 8 日 | |
| Triple back-tick button in the editor | 8 | 2046 | 2025 年12 月 4 日 | |
| Cannot create new lines in codeblocks in Rich Text Mode on mobile | 2 | 95 | 2025 年8 月 16 日 | |
| Add markdown to selected text | 14 | 173 | 2025 年3 月 16 日 | |
| Inline code blocks in code fence mode | 20 | 2499 | 2016 年8 月 25 日 |