format code blocks within list items