colorized scripts

J. Landman Gay jacque at hyperactivesw.com
Wed Aug 27 00:05:08 EDT 2014


On 8/26/2014, 9:57 PM, Mark Wieder wrote:
> Peter-
>
> Tuesday, August 26, 2014, 4:53:19 AM, you wrote:
>
>> 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
>
> I have no recollection of coming up with this, but if I did it, it was
> a result of a spelunking expedition into the script editor code. And
> as a side-effect of that, it may well be outdated by now.
>

I believe the revSE-whatver handlers are remnants of when the script 
editor did the colorization by script, before the engine took it over. 
If it throws errors in newer versions of LC, that would be why.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list