Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: How to generate colorized HTML from rebol scripts ?

From: anton:lexicon at: 23-May-2002 3:23

You can probably expect to find that colorize won't work on itself. I didn't trace that bug, but it looks like it could be that it is picking up its own key strings. I started to run a test on all my scripts like this (and this is a good demo of my tree): site: http://anton.idatam.com.au/rebol/ do load-thru site/library/include.r include [site/library/tree.r [tree]] tree/quiet/code %/D/Anton/Dev/Rebol/View/ [ foreach file files [ if %.r = suffix? file [ prin file save join %/D/Anton/Dev/Rebol/View/test/colorize/ [ file %.html ] colorize dir/:file print "^- OK" ] ] ] It seems to handle most files, but it bombs out on a fair percentage, just guessing around 20%. Because %colorize.r uses 'load, it eventually runs out of words. At this point, I got:
>> length? first system/words
== 8062 It was fun browsing the entire collection with: foreach file read %./ [browse file] iexplore.exe couldn't handle so many, crashing out a lot, and the rebol process (beta) in which I issued the above line crashed as well the first time. What fun. :) Anton.