software:yaml
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| software:yaml [2025/05/27 14:52] – ron | software:yaml [2025/05/31 15:02] (current) – ron | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # YAML | ||
| + | |||
| + | ## multi-line strings | ||
| copied from [Stack Overflow](https:// | copied from [Stack Overflow](https:// | ||
| - | || header || header || | + | * `> |
| - | | item1 | item2 | | + | * `|` → line breaks are preserved as \n |
| + | * `>-` → like `>` but without trailing line break | ||
| + | * `|-` → like `|` but without trailing line break | ||
| + | |||
| + | In this table: | ||
| + | \b means space character, \n means " | ||
| + | " | ||
| + | ^ ^ `> | ||
| + | | Spaces/ | ||
| + | | Trailing space | \b | \b | \b | \b | \b | \b | | | | | ||
| + | | Leading space | ||
| + | | Single newline | ||
| + | | Double newline | ||
| + | | Final newline | ||
| + | | Final double newline | ||
| + | | How to create a literal: | ||
| + | | Single quote | ' | ||
| + | | Double quote | " | ||
| + | | Backslash | \ | ||
| + | | Other features | ||
| + | | In-line newlines with literal \n| 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | ✅ | 🚫 | | ||
| + | | Spaceless newlines with `\` | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | ✅ | 🚫 | | ||
| + | | # or : in value | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | 🚫 | ✅ | ✅ | | ||
| + | | Can start on same line as key | ||
software/yaml.1748357573.txt.gz · Last modified: 2025/05/27 14:52 by ron
