String
- Syntax
-
"..." or '...' or `...` - Accepted values
- Any quoted text value.
- Alternative type names
- string
- Reserved names
- None
Example
title:string = "Daily note"
Learn moreLearn less
Escapes and quoting
Strings are best for compact text. Use escapes when the delimiter or a control character must live inside the value.
The spec distinguishes ordinary quoted strings from raw backtick strings. Quoted strings support Unicode escapes, but malformed escape sequences fail closed.
Use trimtick/prose when the text is naturally multiline; it keeps source readable without a wall of escape sequences.
quote:string = "She said \"AEON\"."
path:string = "C:\\notes\\today"
line:string = "first\nsecond"