format code block in list