format code block correctly