If you are using Sublime Text editor, the steps for commenting the block are mentioned below − The shortcut key combination for commenting YAML blocks is Ctrl+Q. The comments within a collection are shown below − YAML does not include any way to escape the hash symbol (#) so within multi-line string so there is no way to divide the comment from the raw string value. The features of comments in YAML are given below −Ī commented block is skipped during execution.Ĭomments help to add description for specified code block. If you want to provide comments for multiple lines, you can do so as shown in the example below − YAML does not support multi line comments. Its structure is explained below with the help of an example − In this chapter, we will see how to use comments in YAML. Now that you are comfortable with the syntax and basics of YAML, let us proceed further into its details.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |