Documentation Archive

Developer

Markup Formatting Reference

On This Page

Code Voice

Render a span of text using the font for code voice.

Works with:

  • ✓ Playgrounds

  • ✓ Symbol documentation

Syntax

Format a span of text as code by using a backquote (`) before the first character of the span and after the last character of the span. The first and last characters cannot be spaces.

  • `string`

Playground Example

  1. //: Show Swift elements such as `for` and `let` as monspaced code font
image: ../Art/MFR_code_eg_2x.png

Quick Help Example

  1. /**
  2.  An example of using a *code voice*
  3.  Show Swift elements such as `for` and `let` as monspaced code font
  4. */
image: ../Art/MFR_symbol_code_voice_2x.png