Format a code block