Emphasis (Italics)
Render a span of text using the font face for emphasis.
Works with:
✓ Playgrounds
✓ Symbol documentation
Syntax
Add emphasis by using an asterisk (*
) or underscore (_
) before the first character of the span and after the last character of the span. The first and last characters cannot be spaces. Do not mix asterisks and underscores for the same element.
*string*
_string_
Playground Example
/*:
This line has a word with *emphasis*.
This line uses _emphasis for the last six words_.
*/
Quick Help Example
/// This line has a word with *emphasis*.
///
/// This line uses _emphasis for the last six words_.
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2017-06-05