YAML supports inline comments, but does not support block comments.
From Wikipedia:
Comments begin with the number sign (
#
), can start anywhere on a line, and continue until the end of the line
A comparison with JSON, 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.
# If you want to write # a block-commented Haiku # you'll need three pound signs
Related Posts:
- YAML Multi-Line Arrays
- YAML mapping values are not allowed in this context
- How do I comment out a block of tags in XML?
- Resetting comment count
- Redirect user to a custom url after submitting the comment
- Add comments from the admin panel?
- One comment per user per post but be able to reply to existing comments
- Disable saving comment details (name, e-mail) in cookie?
- What’s the easiest way to close comments on media/attachments?
- Using Disqus, how to stop storing comments in wp database?
- Get threaded comments number
- Get number of comments after modifying comment query
- Comments not showing in custom post type – WordPress
- Display latest comments on page with pagination
- How do I make wordpress comment fields required?
- Plugin: How should I handle deleting comments?
- Let user edit his own comment
- Get the number of comments awaiting moderation
- Akismet plugin is deleting spam despite preferences
- Changing position of cancel_comment_reply_link and other elements of comment form
- What does the “$depth” parameter in the Walker_Comment stand for?
- Why do comment moderators need to have all create/edit/delete toboth posts and pages?
- Comment pagination – How to show determined number of comments on the first page?
- How to allow a particular role like Contributor be able to only view pending comments and approve them?
- Why is WordPress redirecting users to random posts after commenting?
- How do I get the latest note on the order at woocommerce? [closed]
- How to get most recent commented post above new submitted post in WordPress?
- Sort comments by karma
- Comment form connection to Gravity Forms
- Add classname comment template from functions.php
- how to find user ids of all commenters in a post
- Comments deactivated
- List user comments in author page
- Filter custom posts with / without comments
- Create comments.php form of custom HTML code
- Display comments on homepage of twenty seventeen theme
- Disqus comments and pingback script – how to change the order?
- To whom do emails get sent via the WordPress comments form?
- Comments feed – Undefined named entity: ndash
- WordPress comments_open for specific user role or post type
- Disqus deleted comments are syncing with wordpress but active comments do not
- I want to allow the use of a data-flw attribute in links in comments
- warnCommentChanges always being triggered on update
- Add & store extra fields – WordPress Comments
- how get comments only on post of current logged in user?
- wp-comments-post.php file returns a blank page
- How to get comment id in callback function?
- Posting comment returns 404
- Get declared variable in single.php to work in comments.php without re-declaring it [closed]
- What is causing wp-comments-post.php to redirect to the browser’s IP address?
- Extra Title field for Comments
- Comments offset
- How to allow code block in wordpress comments
- Is there a specific term for Plugins that are specified in a WordPress Post using Comments?
- Using a static callback on wp_insert_comment
- How do you change the comment count in the back end posts list, to reflect unapproved comments, rather than all comments?
- WordPress Recent Comments Widget exclude own comments
- Removing the comment function within wordpress
- How to prevent multiple comments
- How to get comment images stored as serialized comment meta
- Hide comments on specific pages, not just disable future comments
- JQuery Counter Limit not working for WP Comment Textarea
- Fetching Initials of the Commentator in the WordPress Website
- Add comment_meta to wp_comment_reply
- How do comments work?
- Can’t reply to comments [closed]
- ask and edit an extra comment field
- disable defaault wordpress comments from a plugin
- How to filter comments by comment_meta
- Prevent users to delete comments from trash
- How to get the `comment_post_ID`?
- How do I change where “You must be logged in to comment” directs users?
- How to display replies to his comments in user profile of current user
- Top rated posts Average rating issue
- stop url changing when user comments
- wordpress admin ajax trash_comment
- Comments are in database, don’t show up in WordPress backend or frontend
- Geoip shortcodes in comments
- Badges for Guests based on their comment counts [closed]
- How to add a class to comment submit button?
- standard callback function for wp_list_comments
- WordPress Commenting System User access and Security
- WordPress Comments – Only show part of user name
- Broken comments section – WordPress 2014 Theme
- Turn off comments for given CPT checkbox?
- Need an advice about comments
- same comment list for two posts
- Replace do_action() with a normal submit form in comments.php
- WordPress most commented posts of last X days
- edit-comments.php in Admin – how to change ‘Comments’ title?
- comments_number fails to print
- Comments on pages not appearing, even though I enabled them
- How does WordPress add the comments and comment form to posts
- Questions about using Disqus or Jetpack for comments [closed]
- Stop future commenting on specific post
- Error 403 when posting comments to a custom post type from a different page
- Comment turned Invisible
- get Discussion setting in wordpress
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- How to add a custom field to the comments “Quick Edit” screen?