Raw Strings and Triple Quotes
Use triple-quoted strings for multiline text and raw content without escapes.
What Is a Raw String?
A raw string uses triple quotes """...""" and preserves text exactly as written — no escape sequences, no special characters.
Basic Raw String
Triple-quoted strings can span multiple lines without explicit \n.
fun main() {
val text = """
Line 1
Line 2
Line 3
"""
println(text)
}