I don't know about the complications of block comments, etc, but can't all the complexites of dealing with of handlers, functions, getProp, and setProp be sidestepped by looking for "end" && <handlername> -- or am I missing something? Does that simplify any of the other problems? Peter M. Brigham