note:
\n is a
character escape code. Such codes are used to enter special non-printable characters which you otherwise can't type. They are used in many programming languages. eg:
\0 (ascii code 0x00) Null character
\a (ascii code 0x07) Bell
\b (ascii code 0x08) Backspace
\t (ascii code 0x09) Horizontal Tab
\n (ascii code 0x0A) Line feed
\v (ascii code 0x0B) Vertical Tab
\f (ascii code 0x0C) Form feed
\r (ascii code 0x0D) Carriage return
\\ (ascii code 0x52) Backslash.
Since the backslash on its own is used to enter a special code (the escape codes) or to tell the interpreter it must take the next character literally (except for the ones listed above), you can't use just 1 backslash if you want to enter a backslash. You need to double it up.
\" (ascii code 0x22) Double quote
Used for when you need to enter a double quote while the string itself is also between double quotes. eg:
"Hello "World"..." will not be a valid string since the program interpreter will struggle to know where the exact string begins and ends since you used more than two double quotes. Solution is to use single quotes to encapsulate the string: 'Hello "World"...'. Or escape the literal double quote character so the interpreter knows it must take the double quote literally as a character and not as the beginning or ending of a string: "Hello \"World\"..."
\' (ascii code 0x27) Single quote
similar to \" but for single quotes.
Then there is also the use for entering any character code you like by using the hexadecimal value of the character:
\x?? (hexadecimal ascii code ??) For example: /x41 will produce the ascii code 0x41 or 65 in decimal, which is the capital A.
\u???? (hexadecimal unicode code ????) For example /u1234 will produce the unicode code 0x1234, or 4660 in decimal.
\??? (octal ascii code ??? (between 000 and 377)) For example /101 will produce the decimal ascii code 65, which is the capital A.
Not all escape codes are supported in all programming languages and/or in all situations. And some escape codes have different syntaxes in other languages (eg: /u{????} in Perl)
-----------------------
For stuff like this, see the
Official Help and Documentation for JScript, which can be downloaded from the official Messenger Plus! site:
http://www.msgpluslive.net/scripts/view/152-Windo...ipt-Documentation/ > JScript User's Guide > Advanced JScript > Special Characters
Which can also be consulted online in the MSDN library