ScriptUO
Scripting Resources & Utilities => ScriptUO Application => Feedback => Topic started by: b@ndito on July 13, 2010, 04:47:37 AM
-
Actually i'm using another editor instead of suo with a customized config made to recognise easyuo labels... i've found here a good feature that you may consider...
the editor recognise sub from sub starting from the first sub and closing it to the last return the parser would find before next sub start. it permits to highlight row numbers on the left column, and also puts a - sign to collapse the sub.
i try to show you an example,
sight before collapsing.
...
row 110
[ - ] sub example
set %variable ( somemaths )
if %variable = value
return %variable
row 115 set %anothervar (math)
if %anothervar = value
return %anothervar
return error
row 120
[ - ] sub anothersub
...
collapsed sub sight
...
row 110
[ + ] sub example
row 120
[ - ] sub anothersub
...
i hope i to have explained enough with my poor english and you may find it usefull to improve SUO :D
this technique is quite useful but limited if some code is beyond the last return, i.e. if you bump back the parser with a goto
-
That's an awesome idea! I would love to see that implemented into SUO.
-
That's a feature that's built into the editor control I'm using. I've tried a few times to unravel the mystery of that particular feature, but until now I've failed miserably. There's just not enough sample code out there to help enlighten me, so I kinda gave up. However, with the subs pane, you get just about as much mobility around a script that you'd get with code collapsing.
It's on my list to figure out one of these days.