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

时间:2023-01-23 19:02:59

Raw Markup

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

Rendered Markup

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

How do I change the word Example in the "Rendered Markup" to anything I would like?

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

1 个解决方案

#1


5  

Custom callouts

You can make use of a Custom Callout

您可以使用自定义标注

/*:
 # Hello, playground!

 The print() function in Swift

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

*/

Rendered as (using Dusk theme)

呈现为(使用黄昏主题)

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


Additional pre-defined callouts

If you don't fancy the color of the Custom Callout, there are a few other callouts (in addition to Example) available for use in a playground

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

/*:
 # Hello, playground!

 The print() function in Swift

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

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

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

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

*/

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

For additional details, see the Markup Formatting Reference - Markup Functionality.

有关其他详细信息,请参阅标记格式参考 - 标记功能。

#1


5  

Custom callouts

You can make use of a Custom Callout

您可以使用自定义标注

/*:
 # Hello, playground!

 The print() function in Swift

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

*/

Rendered as (using Dusk theme)

呈现为(使用黄昏主题)

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


Additional pre-defined callouts

If you don't fancy the color of the Custom Callout, there are a few other callouts (in addition to Example) available for use in a playground

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

/*:
 # Hello, playground!

 The print() function in Swift

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

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

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

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

*/

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

For additional details, see the Markup Formatting Reference - Markup Functionality.

有关其他详细信息,请参阅标记格式参考 - 标记功能。