I would usually use Github style backtick code blocks and specify the filetype to get syntax highlighting. Same throughout for all indented code blocks. I'm ok with keeping like this if you prefer to use standard markdown.