Re: IDE Script Editor question...

2016-11-30 Thread Devin Asay
> On Nov 29, 2016, at 9:08 PM, Trevor DeVore wrote: > > On Fri, Sep 23, 2016 at 7:13 PM, Richard Gaskin > wrote: > >> Poking around in the SE I found an even simpler solution - replace line >> 3108 of "revSEEditorBehavior" >> >>

Re: IDE Script Editor question...

2016-11-30 Thread Richard Gaskin
Trevor DeVore wrote: On Fri, Sep 23, 2016 at 7:13 PM, Richard Gaskin wrote: Poking around in the SE I found an even simpler solution - replace line 3108 of "revSEEditorBehavior" scriptFormat "handler" ...with: if the shiftKey is "down" then scriptFormat "script"

Re: IDE Script Editor question...

2016-11-29 Thread Trevor DeVore
On Fri, Sep 23, 2016 at 7:13 PM, Richard Gaskin wrote: > Poking around in the SE I found an even simpler solution - replace line > 3108 of "revSEEditorBehavior" > > scriptFormat "handler" > > ...with: > > if the shiftKey is "down" then >

Re: IDE Script Editor question...

2016-10-17 Thread Bob Sneidar
Now when I try to save my changes I get a dialog: Can't save stack revSEEditorBehavior due to an error: can't open stack script file. Bob S > On Oct 17, 2016, at 14:58 , Bob Sneidar wrote: > > NVM it is line 3509 in the tabKey handler. > > Bob S > > On Oct

Re: IDE Script Editor question...

2016-10-17 Thread Bob Sneidar
NVM it is line 3509 in the tabKey handler. Bob S On Oct 17, 2016, at 13:54 , Bob Sneidar > wrote: Odd... line 3108 of the revSEEditorBehavior is blank and is in a handler called private command selectFromCurrentToLineStart. I

Re: IDE Script Editor question...

2016-10-17 Thread Bob Sneidar
Odd... line 3108 of the revSEEditorBehavior is blank and is in a handler called private command selectFromCurrentToLineStart. I found the scriptFormat in about 10 places in that behavior, and am reticent to change any oen of them as I do not know what they would do. I wonder if you are using a

Re: IDE Script Editor question...

2016-10-17 Thread Peter Bogdanoff
Right. I think it was Hypercard that used to reformat the whole script, and maybe earlier LC, but LC6 did only the single handler. This became a big problem for me as I had the default text size set differently on different computers and LC didn’t automatically account for that, so the

Re: IDE Script Editor question...

2016-10-17 Thread Mike Kerner
Bob, You could always make a plugin with a front script, or my favorite, the patch script. On Mon, Oct 17, 2016 at 12:43 PM, Bob Sneidar wrote: > Will this change be wiped next time I update LC? Id so, then this is why I > don't like to make changes like this. It

Re: IDE Script Editor question...

2016-10-17 Thread Bob Sneidar
Will this change be wiped next time I update LC? Id so, then this is why I don't like to make changes like this. It would make a nice feature addition though. Bob S On Sep 23, 2016, at 17:13 , Richard Gaskin > wrote: Poking

Re: IDE Script Editor question...

2016-10-17 Thread Bob Sneidar
Which is a change in prior behavior. It surprised me the first time I saw it. Used to be the whole script reformatted with the tab key. Or am I crazy? Bob S > On Sep 22, 2016, at 14:08 , Paul Dupuis wrote: > > Ah ha. The insertion point must be INSIDE a handler and

Re: IDE Script Editor question...

2016-09-27 Thread Peter M. Brigham
> On Sep 23, 2016, at 1:05 PM, Mark Talluto wrote: > > >> On Sep 22, 2016, at 2:08 PM, Paul Dupuis wrote: >> >> Ah ha. The insertion point must be INSIDE a handler and only re-indents >> that handler when you press TAB >> >> If the insertion

Re: IDE Script Editor question...

2016-09-23 Thread Monte Goulding
A feature request is a good idea. A pull request is a great one... Sent from my iPhone > On 24 Sep 2016, at 12:01 PM, J. Landman Gay wrote: > > Feel like putting in a feature request for this? I would use it often, and if > it's in the IDE then we don't have to edit

Re: IDE Script Editor question...

2016-09-23 Thread J. Landman Gay
On 9/23/16 7:13 PM, Richard Gaskin wrote: Poking around in the SE I found an even simpler solution - replace line 3108 of "revSEEditorBehavior" scriptFormat "handler" ...with: if the shiftKey is "down" then scriptFormat "script" else scriptFormat "handler"

Re: IDE Script Editor question...

2016-09-23 Thread Richard Gaskin
Poking around in the SE I found an even simpler solution - replace line 3108 of "revSEEditorBehavior" scriptFormat "handler" ...with: if the shiftKey is "down" then scriptFormat "script" else scriptFormat "handler" end if Apparently the scriptFormat

Re: IDE Script Editor question...

2016-09-23 Thread Richard Gaskin
Monte Goulding wrote: > No it's scripted > > Sent from my iPhone > >> On 24 Sep 2016, at 7:42 AM, Richard Gaskin wrote: >> >> with a call to _internal Good to know, thanks. Either way, the full-script-reformat routine Mark posted would have little opportunity to speed that end of things up

Re: IDE Script Editor question...

2016-09-23 Thread Monte Goulding
No it's scripted Sent from my iPhone > On 24 Sep 2016, at 7:42 AM, Richard Gaskin wrote: > > with a call to _internal ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: IDE Script Editor question...

2016-09-23 Thread Richard Gaskin
If memory serves, I believe indenting is handled in the IDE similarly to colorization, with a call to _internal. Perhaps if used in conjunction with the info provided in revAvailableHandlers, we may be able to format large scripts even faster, maybe even in the blink of an eye. -- Richard

Re: IDE Script Editor question...

2016-09-23 Thread Mark Talluto
> On Sep 22, 2016, at 2:08 PM, Paul Dupuis wrote: > > Ah ha. The insertion point must be INSIDE a handler and only re-indents > that handler when you press TAB > > If the insertion point is between handlers or outside of any handler, > nothing happens. Ok, tab is useful,

Re: IDE Script Editor question...

2016-09-22 Thread Paul Dupuis
Ah ha. The insertion point must be INSIDE a handler and only re-indents that handler when you press TAB If the insertion point is between handlers or outside of any handler, nothing happens. Ok, tab is useful, but something that reformatted ALL handlers in a script would be even better. Not

Re: IDE Script Editor question...

2016-09-22 Thread Peter Bogdanoff
Does pressing the tab key fix it for you? > On Sep 22, 2016, at 12:52 PM, Paul Dupuis wrote: > > I find myself periodically working with stacks where the individuals > handlers come from a number of sources. > > Some of these sources have their script editor set to the

IDE Script Editor question...

2016-09-22 Thread Paul Dupuis
I find myself periodically working with stacks where the individuals handlers come from a number of sources. Some of these sources have their script editor set to the default 3 space indent. Some to 2 spaces, some to 4 spaces, etc. Is there any easy way to tell the script editor to RE-indent all