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 -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Aug 26, 2014, at 5:53 AM, Jacques Hausser wrote: > I want a button to automatically put the script of any control in a field, > showing the script editor's colors... I'm probably completely dumb, but I > didn't find the trick. > Thanks for every hint! > > Jacques > > > _______________________________________________ > 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