Page 1 of 1
Format code in scripts
Posted: Mon Jul 28, 2014 2:56 am
by JohnW
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?
Re: Format code in scripts
Posted: Mon Jul 28, 2014 8:41 pm
by dunbarx
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