重命名默认的渲染标题,例如"Example" Swift标记语言 [英] Rename default rendered headings like "Example" in Swift Markup language

查看:94
本文介绍了重命名默认的渲染标题,例如"Example" Swift标记语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

原始标记

渲染标记

如何将"Rendered Markup"中的单词"c0"更改为我想要的任何内容?

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

推荐答案

自定义标注

您可以使用自定义标注

/*:
 # Hello, playground!

 The print() function in Swift

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

*/

渲染为(使用黄昏主题)

Rendered as (using Dusk theme)

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

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!")

*/

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

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

这篇关于重命名默认的渲染标题,例如"Example" Swift标记语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆