Re: Code Folding in LC
Bernd: > A new version of Code Folding has been uploaded That's a good effort. Thanks! Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!" https://livecodeconsulting.com/ ___ 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
Re: Code Folding in LC
A new version of Code Folding has been uploaded to the Forum https://forums.livecode.com/viewtopic.php?f=9&t=38912&p=229971#p229971 It addresses a couple of bugs and has been tested to work from 9.6.9 up to 9.6.12 (RC1) and 10.0.0 (DP8) Kind regards Bernd ___ 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
Re: Code Folding in LC
ya know, the script editor could really a touch-up from the script compiler. On Thu, Feb 22, 2024 at 12:23 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > This is a long time coming. > > Bob S > > > > On Feb 22, 2024, at 5:40 AM, Niggemann, Bernd via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > For all those interested in Code Folding a new version has been posted > to the forum. Easier install and some minor bug fixes. > > > > > https://forums.livecode.com/viewtopic.php?f=9&t=38912&p=228244&sid=2a60c9420c1615aca35c5957252b7d8e#p228244 > > > > Kind regards > > Bernd > > ___ > > 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 > > > ___ > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." ___ 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
Re: Code Folding in LC
This is a long time coming. Bob S > On Feb 22, 2024, at 5:40 AM, Niggemann, Bernd via use-livecode > wrote: > > For all those interested in Code Folding a new version has been posted to the > forum. Easier install and some minor bug fixes. > > https://forums.livecode.com/viewtopic.php?f=9&t=38912&p=228244&sid=2a60c9420c1615aca35c5957252b7d8e#p228244 > > Kind regards > Bernd > ___ > 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 ___ 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
Code Folding in LC
For all those interested in Code Folding a new version has been posted to the forum. Easier install and some minor bug fixes. https://forums.livecode.com/viewtopic.php?f=9&t=38912&p=228244&sid=2a60c9420c1615aca35c5957252b7d8e#p228244 Kind regards Bernd ___ 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
Re: Code Folding in LC
i was just about to ask if it still folded tags :-) On Tue, Feb 13, 2024 at 8:41 AM Niggemann, Bernd via use-livecode < use-livecode@lists.runrev.com> wrote: > Dear list > > I posted a stack on the Forum that temporarily installs Code Folding to LC > version 9.6.9, 9.6.10, 9.6.11, or 10.0.0 DP 7. These changes are lost when > closing LC > Future versions might make changes to the installation stack necessary > depending on the IDE changes in those versions. > > https://forums.livecode.com/viewtopic.php?f=9&t=38912 > > You can test drive it and decide if you like it. > There are instructions how to make this a permanent change for your > specific copy of LC if you want to. > > To Mike: Yes it still folds #< to # > Feedback welcome > > Kind regards > Bernd > ___ > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." ___ 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
Code Folding in LC
Dear list I posted a stack on the Forum that temporarily installs Code Folding to LC version 9.6.9, 9.6.10, 9.6.11, or 10.0.0 DP 7. These changes are lost when closing LC Future versions might make changes to the installation stack necessary depending on the IDE changes in those versions. https://forums.livecode.com/viewtopic.php?f=9&t=38912 You can test drive it and decide if you like it. There are instructions how to make this a permanent change for your specific copy of LC if you want to. To Mike: Yes it still folds #< to #http://lists.runrev.com/mailman/listinfo/use-livecode
Re: code folding
Hi Andy, thanks for testing, very helpful. It is reassuring that "Fold All" now works for you. Kind regards Bernd AndyP wrote > Hi Bernd, > > Great, that sorted the problem. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/code-folding-tp4708589p4708610.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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
Re: code folding
Hi Bernd, Great, that sorted the problem. - Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/code-folding-tp4708589p4708609.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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
Re: code folding
And yes Andy, I am aware of that enhancement request and on the cc for it, thanks for pointing it out. Kind regards Bernd BNig wrote > Hi Andy, Tom and Brahma, > > thanks for testing. > > "Fold All" works for me all the time but there is known inconsistency in > variable naming which I corrected and uploaded. > > http://berndniggemann.on-rev.com/fold/foldcode.zip > > same instructions as before: unzip and install in Livecoe 8.1.0 stable > replacing the respective files > > Contents/Tools/Toolset/palettes/script > editor/behaviors/revseeditorbehavior.livecodescript > Contents/Tools/Toolset/palettes/script > editor/behaviors/revsegutterbehavior.livecodescript > > after restart of LC in the Script Editor right-click and "Fold All" > > If any of you could retest "Fold All" that would be very helpful. It is > difficult to debug if it works :) > > Of course anyone who finds that "Fold All" does not or does work: please > report this to the list or off list. Thanks > > Kind regards > Bernd > AndyP wrote >> Hi Bernd, >> >> Thanks for this.. you may want to look at this enhancement request.. >> http://quality.livecode.com/show_bug.cgi?id=6937 >> <http://quality.livecode.com/show_bug.cgi?id=6937> >> >> On LC 8.1 Win 10, folding individual handlers work great but not fold >> all. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/code-folding-tp4708589p4708608.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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
Re: code folding
Hi Andy, Tom and Brahma, thanks for testing. "Fold All" works for me all the time but there is known inconsistency in variable naming which I corrected and uploaded. http://berndniggemann.on-rev.com/fold/foldcode.zip same instructions as before: unzip and install in Livecoe 8.1.0 stable replacing the respective files Contents/Tools/Toolset/palettes/script editor/behaviors/revseeditorbehavior.livecodescript Contents/Tools/Toolset/palettes/script editor/behaviors/revsegutterbehavior.livecodescript after restart of LC in the Script Editor right-click and "Fold All" If any of you could retest "Fold All" that would be very helpful. It is difficult to debug if it works :) Of course anyone who finds that "Fold All" does not or does work: please report this to the list or off list. Thanks Kind regards Bernd AndyP wrote > Hi Bernd, > > Thanks for this.. you may want to look at this enhancement request.. > http://quality.livecode.com/show_bug.cgi?id=6937 > <http://quality.livecode.com/show_bug.cgi?id=6937> > > On LC 8.1 Win 10, folding individual handlers work great but not fold all. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/code-folding-tp4708589p4708607.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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
Re: code folding
Hi Bernd, Thanks for this.. you may want to look at this enhancement request.. http://quality.livecode.com/show_bug.cgi?id=6937 <http://quality.livecode.com/show_bug.cgi?id=6937> On LC 8.1 Win 10, folding individual handlers work great but not fold all. - Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/code-folding-tp4708589p4708605.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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
Re: code folding
Thanks for this! Fold All doesn’t work here though.. fold-unfold for a single handler does. BR On 9/18/16, 10:25 AM, "use-livecode on behalf of BNig" wrote: Maybe I should have added that folding takes time. I tested against the livecodeIDE file with nearly 12000 lines of code. That takes about 3 seconds to fold all handlers. For 5000 lines it is about a second. Unfold All for 12000 lines is a little more than a second, less for smaller scripts. toggling fold/unfold by using "fold-Unfold" is nearly instantaneous. Kind regards Bernd ___ 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
Re: code folding
great addition...thanks. On Sun, Sep 18, 2016 at 4:25 PM, BNig wrote: > Maybe I should have added that folding takes time. > > I tested against the livecodeIDE file with nearly 12000 lines of code. That > takes about 3 seconds to fold all handlers. For 5000 lines it is about a > second. > > Unfold All for 12000 lines is a little more than a second, less for smaller > scripts. > > toggling fold/unfold by using "fold-Unfold" is nearly instantaneous. > > Kind regards > Bernd > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/code-folding-tp4708589p4708590.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > ___ > 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 > ___ 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
Re: code folding
Maybe I should have added that folding takes time. I tested against the livecodeIDE file with nearly 12000 lines of code. That takes about 3 seconds to fold all handlers. For 5000 lines it is about a second. Unfold All for 12000 lines is a little more than a second, less for smaller scripts. toggling fold/unfold by using "fold-Unfold" is nearly instantaneous. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/code-folding-tp4708589p4708590.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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
code folding
This is for the adventurous of the community. Some file swapping involved. I modified the Script Editor of Livecode 8.1.0 stable to allow basic code folding. This is experimental so you should not try this on your valuable work, only on copies. I tested it and did not have any data loss but still, who knows. What this modification does is to add in the Script Editor on right-click some options to the popUp menu. "fold-Unfold" This option is enabled if you right-click on a line that is either the begin of a handler, a if structure, a repeat structure, a switch structure or a case structure. It will fold these, right clicking on the underlined begin of the folding will unfold that structure. if you unfold a handler that has folded substructures it will unfold all, the handler and the substructures. "Fold All" this forces a compile and will fold all handlers in a given script. Can be applied on top of "fold-Unfold" "Unfold All" this will unfold all folded structures. When going into debug mode all folding will be unfolded. Returning to edit mode will leave the script unfolded. When folding a structure the line numbers will reflect the folding, i.e. will omit the folded line numbers However, in case you use the red dot to mark a breakpoint the position of that red dot will be wrong, although it will trigger in the debugger. The modifications are in those two files: revseeditorbehavior.livecodescript revsegutterbehavior.livecodescript on a Mac the are located in: Contents/Tools/Toolset/palettes/script editor/behaviors/revseeditorbehavior.livecodescript Contents/Tools/Toolset/palettes/script editor/behaviors/revsegutterbehavior.livecodescript You have to have write permissions to replace those files. On a Mac you right click on your copy of Livecode 8.1.0 stable and choose "show content" then navigate the path and right click on the files and choose "Inforation" There change your permissions to read write. Then you can swap the files. Maybe it is a good idea to move the unaltered/original files to a different place from where you can move them back into their folder if you want to undo the modification of the app. This is rather basic code folding not really integrated into the IDE, just bolted on. But if it works it might find its way into the IDE. To get the files download them zipped from http://berndniggemann.on-rev.com/fold/foldcode.zip Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/code-folding-tp4708589.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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