ColorizeScript challenge

Richard Gaskin ambassador at fourthworld.com
Thu Apr 27 00:04:12 CDT 2006


Geoff Canyon wrote:
> 
> On Apr 26, 2006, at 2:17 PM, Dave Cragg wrote:
> 
>> On 26 Apr 2006, at 20:06, J. Landman Gay wrote:
>>>
>>> I played with this for about an hour last night. I was using the same 
>>> technique, converting the script to htmltext using the replace 
>>> command. I had it mostly working but got stuck on exactly the issue 
>>> you mention. So let's let Geoff do it. :)
>>
>> I probably should, but a challenge is hard to resist.
> 
> I should point out that I have _no_ idea whether mine would handle any 
> of the issues mentioned. I wrote it as a frustrated thought experiment 
> three years ago, and haven't looked at it since.
> 
> All the testing I remember doing is copying a large script to the source 
> field, hitting the button, and looking at the output and saying, "Yup, 
> that's a colorized script."
> 
> ;-)
> 
> So it's anyone's guess how fast it is, and whether it even works properly.

It turns out to be about 15% faster than Dave's on my machine, but it 
doesn't handle comments as his does.

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com


More information about the metacard mailing list