在Swift Markup语言中重命名默认的渲染标题,如“Example”

时间:2016-08-12 17:05:31

标签: swift markup swift-playground

原始加价

enter image description here

呈现标记

enter image description here

如何将“呈现标记”中的单词Example更改为我想要的任何内容?

1 个答案:

答案 0 :(得分:7)

自定义标注

您可以使用Custom Callout

/*:
 # Hello, playground!

 The print() function in Swift

 * callout(Custom Title):
    print("Hello, playground!")

*/

呈现为(使用黄昏主题)

enter image description here

其他预定义标注

如果您不喜欢自定义标注的颜色,可以在操场上使用其他一些标注(除示例外)

/*:
 # Hello, playground!

 The print() function in Swift

 * Example:
    print("Hello, playground!")

 * Experiment:
    print("Hello, playground!")

 * Important:
    print("Hello, playground!")

 * Note:
    print("Hello, playground!")

*/

enter image description here

有关其他详细信息,请参阅the Markup Formatting Reference - Markup Functionality

相关问题