| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
A string is just any sequence of characters with quotes (`"' around it. To embed a quote in a string, use `\"'. Examples of strings:
"Hi, I'm a string" "\"No way!\" he said" |
Newlines (carriage returns) can also be embedded in a string, by inserting the the newline character sequence into the string. The default sequence is `\n'. This can be modified by editing the users `~/.buano' file. For more details on the `.bunao' file, see The `.bunao' File. Notably, the newline sequence can be changed to `~~' for compatibility with Listmaker syntax.
Newlines embeded in a string like this are called hard newlines. Soft newlines have no effect during runtime. See See section Soft vs. Hard Newlines, for more information.
Here are string with hard newline. In the second example, `~~' is the newline sequence:
"This string\nspans two lines!" "This string~~spans three~~lines!" |