Peter M. Brigham, MD <pmbrig@...> writes: > >> Yes. When I use "-1" instead of the lengthier form, it won't compile, and the long form compiles but doesn't > do anything when I execute it. No error, no action. MacBook, OSX 10.6.8, Rev Studio 4.5.3, build 1210, > operating on an ordinary text field. I was so hopeful! Any other ideas?
As long as you're staying in the IDE, you can let the IDE's script editor set up the colorization tables for you: on mouseUp pMouseBtnNo local tScript local tNum put field "fldScript" into tScript put the number of lines of field "fldScript" into tNum send "sePrefInit" to stack "revNewScriptEditor" send "revSEColorize tScript,default" to stack "revNewScriptEditor" _internal script colorize line 1 to tNum of field "fldScript" end mouseUp -- Mark Wieder _______________________________________________ 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