accessing colorized script

Mark Wieder mwieder at
Thu Mar 22 17:21:36 EDT 2012

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

 Mark Wieder

More information about the Use-livecode mailing list