List of handlers
Geoff Canyon Rev
gcanyon+rev at gmail.com
Tue Sep 13 13:58:12 EDT 2011
Interesting -- I'd forgotten about the token keyword. It still doesn't
handle block comments though:
on mouseUp
/*this is a
on aCommentedCommand
comment*/
put token 1 to -1 of the script of me into tText
put empty into tMenuText
repeat for each line L in tText
if word 1 of L is among the items of
"on,function,getprop,setprop,command,private"
then put L & cr after tMenuText
end repeat
put tMenuText
end mouseUp
That puts
on mouseUp
on aCommentedCommand
gc
On Sun, Sep 11, 2011 at 4:20 PM, Mark Schonewille
<m.schonewille at economy-x-talk.com> wrote:
> Geoff,
>
> Try this:
>
> put token 1 to -1 of the script of tID into tText
> put empty into tMenuText
> repeat for each line L in tText
> if word 1 of L is among the items of "on,function,getprop,setprop,command,private"
> then put L & cr after tMenuText
> end repeat
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Send me a friend request on Facebook if you like https://www.facebook.com/marksch
>
> On 11 sep 2011, at 23:07, Geoff Canyon Rev wrote:
>
>> This doesn't work with block comments, but this is what I used in revNavigator:
>>
>> put the script of tID into tText
>> put empty into tMenuText
>> repeat for each line L in tText
>> if word 1 of L is among the items of "on,function,getprop,setprop"
>> then put L & cr after tMenuText
>> end repeat
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list