Format code blocks correctly