Menu of marks in scripteditor

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Menu of marks in scripteditor

Post by [-hh] » Fri Jul 19, 2013 7:26 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 11:26 am, edited 1 time in total.
shiftLock happens

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Menu of marks in scripteditor

Post by jacque » Sun Jul 21, 2013 5:02 am

I asked for something similar 15 years ago and it almost got done back in the MetaCard days. For some reason it never made it to the finals.

Some of us now make our own, by doing this:

on __MYMARKER
end __MYMARKER

Put non-functional handlers like that throughout your script. They show up in the side handler list pretty well. I use two underscores at the beginning of each handler name, it shows up better than a single underscore. I also tend to put the marker names in all caps, which makes them look like headers.

So scattered throughout my script, I have stuff like this:

on __UTILITIES
end __UTILITIES

on __ENGINEMSGS
end __ENGINEMSGS

on __NAVGATION
end __NAVIGATION

It doesn't sort well, but I hardly ever do that. I usually keep my scripts organized by functionality.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply