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:
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: Script Editor Colouring
quote:
Originally posted by CookieRevised
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 folowing. Such an 'escape character' is needed if you want to use special characters like \ and " in a string.

\\ will result in the character \
\" will result in the character "
\x50 will result in the character with hexadecimal code 0x50
etc...

This is the same in many more languages too...
In that case, shouldn't it be:

open string (")
escape a \ (\\)
escape a " (\")
close string (")
?

And therefore the original poster is correct in saying there is an error?
01-30-2007 11:39 PM
Profile E-Mail PM Web 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