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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode