How to block comments in YAML ? Last Updated : 11 Jun, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report YAML is a human-friendly data serialization standard for all programming languages. It is commonly used for configuration files and in applications where data is being stored or transmitted. The Normal Way for commenting in YAML is Inline commenting with the "#" symbol, however, if you want to comment blocks then we have a list of ways in which it can be done. Step 1: Select the block Step 2: Press cmd plus / on Mac or press ctrl plus / on Linux & Windows. Note: This method works on the following editors - Sublime Text Editor Atom Editor Eclipse (with YEdit plugin) JetBrains IDEs: RubyMine and Gogland Visual Studio Code At any level of the code, you may add a new block text named like "Description" or "Comment" or "Notes" or whatever that you wish Example: Instead of # This comment # is too long use Description: > This comment is too long or Comment: > This comment is also too long and newlines survive from parsing! Advantages: If the comments become too large and too complex and have a lot of repeating pattern, you may want to promote them from plain text blocks to objects. Your app may need to read/update the comments in the future. This method is very handy especially if anyone wants these comments to appear in JSON or XML if one is to transform from YAML to these two. Comment More infoAdvertise with us Next Article How to Comment in JSON Files? A avats101 Follow Improve Article Tags : TechTips Similar Reads How to Comment in JSON Files? JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write and easy for machines to parse and generate. However, JSON does not have a built-in syntax for comments. This limitation can be challenging when you want to annotate your JSON data wi 2 min read YAML Comments YAML_Comments Comments are used to prevent the execution of statements. Comments are ignored while the compiler executes the code. Comments are user-friendly as user can get explanations of code using comments. Since you are alright with the sentence structure and fundamentals of YAML, let us contin 3 min read How to write comments in ReactJS ? When working with ReactJS or any other programming language, making the code easy to understand is essential. One of the best ways to do this is by using comments. Comments are simple notes within the code that help to explain what is happening or why something was done in a specific way. To write c 3 min read Convert YAML to JSON YAML (YAML Ain't Markup Language) and JSON (JavaScript Object Notation) are both popular data serialization formats. Both these formats are used to represent the data in various scenarios, We can convert the YAML to JSON format by using a mixture of Python Library and Shell Script for automation. We 7 min read How to Fix the "Block Mapping Expected" Error in YAML IntroductionYAML (YAML Ainât Markup Language) is an easy-to-read data representation language that is used to describe simple configuration files and passing information across the network between applications of different programming languages. Although YAML is quite easy to read and write and perh 7 min read How To Comment In Dockerfile? The purpose of comments in a Dockerfile is to both clarify and improve the readability of the instructions. It can also be used to stop execution when testing other code. The comments are meant to serve as a source of code line information. Comments are a frequent way for programmers to document the 3 min read Like