Page 1 of 1

Config Syntax - Quotation Marks

Posted: Thu Mar 25, 2004 1:47 pm
by Draegonis
Hola,
Is there any kind of "right way", to write one's config, in terms of the position of quotation marks? Is there any place that they should be going, places that they shouldn't be going, or does it just not matter? The manual doesn't (from what I can tell) have any kind of consistancy regarding them.
I realise that it (appears) to function properly with them or without them, but was wondering if there was some kind of "correct" place.
Thanks. :)

Posted: Thu Mar 25, 2004 4:59 pm
by codemastr
Any value CAN be enclosed in quotes. But only certain ones are required. If the string contains spaces, or "comment" characters (# // /*) it must be quoted to let the parser realize that it is a string and not a comment. Other than that, it's completely up to you.

Posted: Thu Mar 25, 2004 5:30 pm
by Draegonis
Great, thanks. :)

Posted: Thu Mar 25, 2004 9:58 pm
by codemastr
Oh, one other, a string that contains quotes must be quoted and have the quotes escaped. Meaning, if the string you actually want displayed is "blah" not blah, then you must do "\"blah\""