Rename default headers such as Example in Swift Markup

Raw markup

enter image description here

Markup display

enter image description here

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

+5
source share
1 answer

Custom callouts

You can use custom callout

 /*: # Hello, playground! The print() function in Swift * callout(Custom Title): print("Hello, playground!") */ 

Presented as (using the Dusk theme)

enter image description here


Additional predefined callouts

If you don't like the color of the custom leader, there are a few more callouts (in addition to the example) available for use on the playground

 /*: # 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

For more information, see Layout Formatting Link - Layout Functionality .

+5
source

All Articles