If you want to write text in your playdround but it isn’t code, you’ll need markdown syntaxis to show it.

To place a line of text you’ll need the “//: “ operator

//: # Example line of text 

To place more than one line you’ll need to place the text in the next format:

/* 
# Lines of text in Markdown Syntaxis

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vitae sodales nunc. Aliquam erat volutpat. Vestibulum at gravida dolor. Cras hendrerit gravida eros, nec suscipit quam iaculis vel. Nulla facilisi. Integer rhoncus magna id aliquam tempor. Ut a tristique libero, at lacinia nisl. Ut eu velit rhoncus, tristique ligula eu, tincidunt velit.
*/

If you want to hide a block of code from the playground :

//#-hidden-code

import UIKit
import PlaygroundSupport

//#-end-hidden-code

A special note is that this code will be working even if it isn’t showed.

If you want that your user can just edit a part of the code :

/*#-editable-code*/ExampleVariable/*#-end-editable-code*/

Markdown Syntaxis

Headers

# H1
## H2
### H3
#### H4
##### H5
###### H6

H1

H2

H3

H4

H5
H6

Text Format

### Bold

  **Bold**
  __Bold__

Bold

### Italics

  *Italics*
  _Italics_

Italics

### Combined Text

_Combined **Text** Format_

Combined Text Format

Lists

Ordered Lists

1. First Element
2. Second Element
3. Third Element
  1. First Element
  2. Second Element
  3. Third Element

Unordered List

* First Element
* Second Element
* Third Element

- First Element
- Second Element
- Third Element
  • First Elemet
  • Second Element
  • Third Element

Combined Lists

1. First Element
  * First subelement
  - Second subelement
2. Second Element
  1. First subelement
  2. Second subelement
3. Third Element
  1. First Element
    • First subelement
    • Second subelement
  2. Second Element
  3. First subelement
  4. Second subelement
  5. Third Element

Images

![text](image.jpg)

![Swift Logo](swift.jpg)

Swift Logo

URLS

[titulo](URL)

[RoadToWWDC](https://pedrovazquezax.github.io/RoadToWWDC/)

RoadToWWDC

Blockquotes

> First blockquote

> Second blockquote

First blockquote

Second blockquote

Escape character

Markdown provides “scape” for the following chars:

\ Antislash

` Accent mark

* Asterisk

_ Underscore

{} Braces

[] Brackets

() Parenthesis

# Hashtag

+ Plus sign

- Less sign

. Dot

! Exclamation point

Tasks

- [x] Task 1
- [x] Task 2
- [ ] Task 3
- [x] Task 4
- [ ] Task 5
  • Task 1
  • Task 2
  • Task 3
  • Task 4
  • Task 5

Code Blocks

``` swift

print(“Hello World”)

```

print("Hello World")

Tables

| Column Header| Column Header |
| ----------- | ----------- |
| Content Cell | Content Cell  |
| Content Cell  | Content Cell  |

| Column Header| Column Header | | ———– | ———– | | Content Cell | Content Cell | | Content Cell | Content Cell |

Emoji

:tada:
:+1:
:octocat:
:metal:

:tada: :+1: :octocat: :metal: