Format code blocks