On 8/26/2014, 9:57 PM, Mark Wieder wrote:
Peter-
Tuesday, August 26, 2014, 4:53:19 AM, you wrote:
Mark Weider came up with this trick, which I use in my library
stack (a set of utility handlers, click on the name of a handler and
the script is displayed in a field, properly colorized).
put thisScript into fld "script"
-- now colorize script
-- thanks to Mark Wieder, of the useRev listserv
put the number of lines of field "script" into tNum
send "sePrefInit" to stack "revNewScriptEditor"
send "revSEColorize thisScript,default" to stack "revNewScriptEditor"
_internal script colorize line 1 to tNum of field "script"
-- how he figured this out, I don't know
I have no recollection of coming up with this, but if I did it, it was
a result of a spelunking expedition into the script editor code. And
as a side-effect of that, it may well be outdated by now.
I believe the revSE-whatver handlers are remnants of when the script
editor did the colorization by script, before the engine took it over.
If it throws errors in newer versions of LC, that would be why.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.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