# YAML Syntax Cheat Sheet

Write valid YAML.

```yaml
# comment
name: Ann                  # string
age: 30                    # number
active: true               # boolean
nothing: null
list:
  - one
  - two
inline: [a, b, c]
map:
  key: value
  nested:
    deep: 1
multi_line: |              # keeps line breaks
  line one
  line two
folded: >                  # joins lines with spaces
  long text
  continues
anchors:
  base: &base { x: 1 }
  copy: *base
quoted: "needs: quotes"    # quote strings with colons or leading special characters
```

Use **spaces, never tabs**. Quote values like `"yes"`, `"no"`, `"on"` and `"1.0"` if they must stay strings.
