tags:

views:

1080

answers:

2

Does anyone know how to comment a block of lines in yaml?

+6  A: 

I don't believe YAML supports block comments.

From Wikipedia:

Comments begin with the number sign ( # ), can start anywhere on a line, and continue until the end of the line

Also from Wikipedia:

The syntax differences are subtle and seldom arise in practice: JSON allows extended charactersets like UTF-32, YAML requires a space after separators like comma, equals, and colon while JSON does not, and some non-standard implementations of JSON extend the grammar to include Javascript's /* ... */ comments. Handling such edge cases may require light pre-processing of the JSON before parsing as in-line YAML.

# This is as close as
# you will get to a block
# commented Haiku.
Dolph
+2  A: 

See this link.

"An explicit comment is marked by a “#” indicator". Thats all about it.

eugene y