最佳答案
自定义标注
您可以使用 Custom Callout
/*:
# Hello, playground!
The print() function in Swift
* callout(Custom Title):
print("Hello, playground!")
*/
呈现为(使用 Dusk 主题)
额外的预定义标注
如果您不喜欢自定义标注的颜色,还有一些其他标注(除了示例)可用于 playground
/*:
# Hello, playground!
The print() function in Swift
* Example:
print("Hello, playground!")
* Experiment:
print("Hello, playground!")
* Important:
print("Hello, playground!")
* Note:
print("Hello, playground!")
*/
有关更多详细信息,请参阅 the Markup Formatting Reference - Markup Functionality .
关于swift - 在 Swift 标记语言中重命名默认呈现的标题,如 "Example",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38923167/