Zum Inhalt springen

Quotes

Quote arguments with single, double, or backtick marks, and escape a quote with a backslash

1 Min. LesezeitDiese Anleitung gibt es nur auf Englisch.
Auf dieser Seite

Any argument can be quoted to preserve spaces and special characters. ZeroTrace accepts three interchangeable quote styles.

Quote styles

StyleExampleUse 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"

Index wird geladen…

↑↓auswählen↵öffnenescschließen