Formatting/Commenting Issue with YML files
-
I noticed an issue with pasting YML into a YML file. I copy my config as
<cr> vars: #ansible_connection: ansible.netcommon.network_cli #No ansible_network_os available for Dell PowerConnect OSAfterwards, I paste the above into my YML file at the end of the previous line.
I expected both commented lines to be commented out (turn green). But the first commented line, does not turn green. I have to backspace the line until it jumps up the the previous line. Then I can hit enter to move it down to a new line, and it turns green.
-
I cannot replicate your problem:

When I paste that in, the YAML formats the comments correctly, as far as I can tell.
Could you either give the original data, and where you paste it? And your ?-menu’s Debug Info?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register Login