Does YAML allows Spacing/Indentation?

Category: YAMLDoes YAML allows Spacing/Indentation?
Editor">Editor Staff asked 2 years ago

Does YAML allows Spacing/Indentation?

1 Answers
Editor">Editor Staff answered 2 years ago

As you know that YAML doesn’t allow any tab spaces, but it follows spaces between element parts.
Example – Key: Value
Comments YAML supports only single-line comments. Comments are not supported in scalars but in collections it is vice-versa. The shortcut key for commenting block is Ctrl+Q.
syntax: # this is a comment
comments in collection
key:  #comment 1   – value line 1   #comment 2   – value line 2