Skip to content

Instantly share code, notes, and snippets.

@kasunbg
Last active November 30, 2021 20:30
Show Gist options
  • Save kasunbg/ee4afa7d691c3d64eb3e4abe126e6140 to your computer and use it in GitHub Desktop.
Save kasunbg/ee4afa7d691c3d64eb3e4abe126e6140 to your computer and use it in GitHub Desktop.
Write valid YAML without indentation by using curly-braces. See 3.this.is.a.valid.explicit.yaml
<Colors>
<Red>FF0000</Red>
<Blue>0000FF</Blue>
<Green>008000</Green>
</Colors>
Colors:
Red: FF0000
Blue: 0000FF
Green: 008000
Colors: {
Red: FF0000,
Blue: 0000FF,
Green: 008000,
}
Name: List of CSS color codes
# explicit curly-brace start-end tags are used to denote scope
# the elements in the same scope are separate with commas, like in JSON.
BasicColors: {
Red: FF0000,
Blue: 0000FF,
Green: 008000,
}
#indentation is used to denote scope
OtherColors:
Yellow: FFFF00
Maroon: 800000
Lime: 00FF00
Colors:
Red: FF0000
Blue: 0000FF
Green: 008000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment