Format code in scripts

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
JohnW
Posts: 2
Joined: Mon Jul 28, 2014 1:29 am

Format code in scripts

Post by JohnW » Mon Jul 28, 2014 2:56 am

I am rewriting some personal hypercard stacks and am not up to speed with LC. When I put new code into a script using 'set script to…' the resulting script is not indented correctly and when I click the button with the changed script, it is not running the script properly. Any suggestions for how I might 'Format' the script without opening it and pressing the tab key?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Format code in scripts

Post by dunbarx » Mon Jul 28, 2014 8:41 pm

This is not really a feature request. Please move it to the "Converting to LiveCode" pane.

But anyway, are you sure that the old HC syntax makes just perfect sense in LC? However alike the two are, they are not the same exactly. Perhaps comment out sections of your code and see if indentation works. Then add more and more snippets until indentation breaks. Of course, try to do this in logical blocks, repeat loops, if-then constructions, that sort of thing.

Craig Newman

Post Reply