What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » Script Editor Colouring

Script Editor Colouring
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Script Editor Colouring
quote:
Originally posted by phalanxii
Another script editor colouring bug:
code:
Debug.Trace("\\\"");
It appears that the editor takes the apostrophe as part of the string if there is a backslash before it ("\"" resulting in "), unless there is another backslash before that backslash ("\\" resulting in \). However, as seen above, it doesn't take into account a third back slash ("\\\"" resulting in \").
That is not a bug and is actually as it should be...

Backslashes are special escape characters which tell JScript that a literal character is following. Such an 'escape character' or 'metacharacter' is needed if you want to use special characters like \ and " in a string.

\\ will result in the character \
\" will result in the character "
\n will result in a new line character
\x50 will result in the character with hexadecimal code 0x50
etc...

This is the same in many more languages too...

See JScript documentation.

This post was edited on 01-30-2007 at 11:41 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-30-2007 11:35 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script Editor Colouring - by phalanxii on 01-01-2007 at 06:24 AM
RE: Script Editor Colouring - by deAd on 01-01-2007 at 07:45 PM
RE: Script Editor Colouring - by CookieRevised on 01-01-2007 at 08:08 PM
RE: Script Editor Colouring - by phalanxii on 01-30-2007 at 11:08 AM
RE: Script Editor Colouring - by CookieRevised on 01-30-2007 at 11:35 PM
RE: Script Editor Colouring - by ddunk on 01-30-2007 at 11:39 PM
RE: Script Editor Colouring - by CookieRevised on 01-30-2007 at 11:43 PM
RE: Script Editor Colouring - by phalanxii on 01-31-2007 at 04:40 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On