fbpx

Add Comments to YAML File

In order to add comments to a YAML file, you simply have to use the # (hashtag symbol) at the start of the line. For example, below is an example of one commented line in a YAML file.

# This is an example of one commented line in a YAML file 

How to Add Block Comments to YAML File?

If you would like to comment multiple lines in a YAML file, you simple have to start each commented line with a # (hashtag). See the following block comment as an example:

# This is an example of 
# a block comment
# in a YAML file 

Leave a Reply

Your email address will not be published. Required fields are marked *