Skip to content

YAML⚑

YAML is commonly used for configuration files and in applications where data is being stored or transmitted.

Filenames can end with .yaml or .yml.

Usage⚑

Strings⚑

---
key: this is a string

key: "this is also a string"

key: |
  this is a multi-line
  string with line breaks

key: >
  this a multi-line 
  string withouth line breaks

Integers and floats⚑

---
integer: 595

float: 12.2

Lists⚑

---
list1: [1, "two", 3]

list2:
  - 1
  - "two"
  - 3

Objects⚑

---
my_obj:
  title: My Object
  description: This is a object
  childs:
    - test_obj:
        name: Test Object

Comments⚑

---
# this is a comment