format code for markdown