What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] C/C++ Keywords Script

Pages: (2): « First « 1 [ 2 ] Last »
[Request] C/C++ Keywords Script
Author: Message:
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: [Request] C/C++ Keywords Script
sMessage = sMessage.replace(/\bdo\b/gi,"[c=12]do[/c]");
07-06-2006 02:26 AM
Profile E-Mail PM Web Find Quote Report
Paril
Junior Member
**

Avatar
Admin of Paril's Projects

Posts: 69
30 / Male / Flag
Joined: Jul 2006
O.P. RE: [Request] C/C++ Keywords Script
Thank you :)

Now, what about comments? How do I do that?
[Sorry, yet again for dualpost]

About the last post SilentDragon, how would I do that to this?

    sMessage = sMessage.replace("asm","[c=12]asm[/c]");

do I put asm in a var or something?

EDIT: I was right :)

-Paril
[Triple, sorry :(]

Alright, I got a small block comment thing in.
Problem is, if I do it with a blue keyword, it does this:

[c=3]/*[c=12]true[/c]*/[/c]

Any way to stop this?

-Paril
07-06-2006 02:35 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Request] C/C++ Keywords Script
You should check to see if the keyword is a part of a multiline comment
07-06-2006 04:57 AM
Profile E-Mail PM Find Quote Report
Paril
Junior Member
**

Avatar
Admin of Paril's Projects

Posts: 69
30 / Male / Flag
Joined: Jul 2006
O.P. RE: [Request] C/C++ Keywords Script
I tried that, but it wouldn't let me use comments at all after that.. I must be doing it wrong, I'm not very good at Jscript..
07-06-2006 05:00 AM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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