accessing colorized script
Peter M. Brigham, MD
pmbrig at gmail.com
Thu Mar 22 21:48:15 EDT 2012
On Mar 22, 2012, at 5:21 PM, Mark Wieder wrote:
> Peter M. Brigham, MD <pmbrig at ...> 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
Works like a charm! Fantastic!!! I am in awe!!! How did you discover this?
-- Peter
Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig
More information about the use-livecode
mailing list