Skip to content

Instantly share code, notes, and snippets.

@Kashif-E
Last active Sep 17, 2022
Embed
What would you like to do?
QuotedScalars.yml
#Scalar with multilines kept as multilines
this-will-print-in-multiline: | this article is so awesome
i cant stop reading it
i have fallen in love with this article
#Scalar with multilines printed as a signle line and new lines will become spaces
this-scalar-goes-straight-in-line: > this is going multiline
but it will be printed in a single
line
#Quoted Scalars
unicode: "Sosa did fine.\u263A"
control: "\b1998\t1999\t2000\n"
hex esc: "\x0d\x0a is \r\n"
single: '"Howdy!" he cried.'
quoted: ' # Not a ''comment''.'
tie-fighter: '|\-*-/|'
#Multi-line Flow Scalars
plain:
This unquoted scalar
spans many lines.
quoted: "So does this a quoted scalar"
#integer
x: 10
#Booleans
i-am-boolean: yes
no-i-am-not-a-boolean: off
boooolllleeaaaan: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment