【发布时间】:2016-08-15 03:11:40
【问题描述】:
Swift 上的文档为标记中的 spacing Examples 提供了以下代码:
/*:
- example: *A simple `for` loop.*\
This example shows a `for` loop that prints the numbers 1 to 5.\
\
`for index in 1...5 {`\
` print("index = \(index)")`\
`}`}
*/
在渲染的标记中没有出现空格:
如何在代码 sn-ps 中添加空格,尤其是在标记中自定义 callouts() 的示例?
【问题讨论】:
-
@tktsubota,我试过了,但有三次反勾号。不幸的是,这些对自定义
callouts()没有帮助。 -
您是否使用 Playgrounds 标记或代码文档?
-
@ronatory 代码在 Playground 中。
标签: swift documentation markup