colorized scripts

Peter M. Brigham pmbrig at gmail.com
Tue Aug 26 10:10:35 EDT 2014


On Aug 26, 2014, at 9:19 AM, Jacques Hausser wrote:

> As I'm checking version 7.10 DP, your solution is not working... I rummaged into the "revNewScriptEditor" stack and found that "revSEColorize" doesn't exist anymore (or it's hidden somewhere else).
> But it's even simpler! here the script of my button:
> 
> on mouseUp
>   put the script of button "TestButton" into fld "FScript"
>   _internal script colorize char 1 to (the number of chars of field "FScript") of field "FScript"
> end mouseUp
> 
> ... works perfectly ! (although I strictly don't know what an "_internal script" is). I guess it is not usable on a standalone.

Hmm. Turns out that your simplified script works fine for me in LC 5.5.1 too -- the "sePrefInit" and "revSEColorize" commands seem to be unnecessary anyway. Interestingly, if I try to do this:
   _internal script colorize char 1 to -1 of field "FScript"
it gives an error. Apparently whatever handles an "_internal" script can't handle anything but the original old chunk expressions.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig





More information about the use-livecode mailing list