ZeroTrace HID
Quotes
Quote arguments with single, double, or backtick marks, and escape a quote with a backslash
Any argument can be quoted to preserve spaces and special characters. ZeroTrace accepts three interchangeable quote styles.
Quote styles
| Style | Example | Use case |
|---|---|---|
"double" | writeLn "multi word text" | Standard text and phrases |
'single' | writeLn 'another value' | Alternate quoting |
`backtick` | writeLn `special$chars` | Code and symbol-heavy input |
- All three styles behave the same way — pick whichever avoids the quote character you need inside the string.
- Quotes preserve spaces and special characters until the matching closing quote.
writeLn "Hello world"
writeLn 'Single quoted value'
writeLn `echo "complex $EXPR"`
Escaping
Inside a quoted argument, a backslash escapes the quote character or another backslash:
\followed by the active quote character types that quote literally instead of closing the string.\\types a single literal backslash.
writeLn "She said \"hi\""
writeLn 'it\'s fine'
writeLn "path C:\\Users"
A backslash before any other character is left as-is — escaping only applies to the active quote and to \\. For strings that mix ' and ", backticks are usually the simplest choice.