Delimiter Hierarchy: When Triple Quotes Outperform

While triple quotes excel for general multi-line text and user input, specific tasks benefit from other delimiters: triple backticks (```) are favored for code snippets, XML tags (`<tag>`) for complex, hierarchical data structures (especially with models like Claude), and triple hashes (###) for distinct instructional steps.

Sources

Open the full topic