Skip to content

Instantly share code, notes, and snippets.

@Kashif-E
Last active September 17, 2022 18:44
Show Gist options
  • Save Kashif-E/e46b78bb02d0b83c415b2dc7bb46bf02 to your computer and use it in GitHub Desktop.
Save Kashif-E/e46b78bb02d0b83c415b2dc7bb46bf02 to your computer and use it in GitHub Desktop.
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