Single and double quotes

Tinderbox Icon

When referring to quoting values such as strings, double quotes should be assumed. In edge cases where a string needs to enclose a double quote - for instance a complex command line string - paired single quotes may also be used.

Within quoted text a backslash (\) escapes a character and a double backslash sequence (\\) allows a literal backslash (\) to be used. Besides escaping non-pairing quotes, standard escape codes like \n indicating a new line character or \t for a tab may be used.

However, a backslash cannot be used to escape literal single or double quote characters. This effectively limits the nesting of different types of quotes to one set inside another.


Up: Coding conventions
Previous: Using $ and quotes in Export code   

A Tinderbox Reference File : Objects & Concepts : Coding conventions : Single and double quotes aTbRef Site Map


[Last updated: 6 Feb 2012, using v5.10.1]

Google search aTbRef for:  

Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox