Ok, so I have this alias:
What I'm trying to get is when I rpose something, anything within single quotes, (I'll also set it to do double quotes, but I'm just trying to get this working first) is in Dark Cyan. ("@c" is the colour code.)
Right now, the way it's working, any SINGLE word withing single quotes is changed. Punctuation and numbers are coloured too.
If I have any spaces there, it fails.
For instance, the following colours the "Hello!" but not the "Does this work" part.
I've tried lots of things, can't figure this out. :-( If I change the "Hello!" to "Hello there!" it fails.
<aliases>
<alias
match="rpose*"
enabled="y"
send_to="12"
omit_from_output="y"
ignore_case="y"
keep_evaluating="y"
sequence="100"
>
<send>
message = string.gsub ("%1", "'(%a*%d*%s*%p*)'", "'@c%%1@y'")
Send("rpose @y" ..message.."@n")
</send>
</alias>
</aliases>
What I'm trying to get is when I rpose something, anything within single quotes, (I'll also set it to do double quotes, but I'm just trying to get this working first) is in Dark Cyan. ("@c" is the colour code.)
Right now, the way it's working, any SINGLE word withing single quotes is changed. Punctuation and numbers are coloured too.
If I have any spaces there, it fails.
For instance, the following colours the "Hello!" but not the "Does this work" part.
Quote:
rpose Checking to see if this will work, 'Hello!' I hope it works. 'Does this work?'
rpose Checking to see if this will work, 'Hello!' I hope it works. 'Does this work?'
I've tried lots of things, can't figure this out. :-( If I change the "Hello!" to "Hello there!" it fails.