Look here: Forum text markup for instructions, look at the part called Codeblocks on how to format/show yaml or other code.