Code should be displayed in a formatted block with syntax highlighting (if applicable) for clear visibility.