I have not found any documentation on how folding works. From what I can tell it is a combination of character pairs and indentation. I'm have great stress trying to make sense of a PHP class which I did not write. I cannot make sense of it in BBEdit which I have always used for code. (I stumbled on TextMate today.) TM would help greatly with it's folding feature, if I could properly fold functions. However the class author used inconsistant indentation (for which he should be tortured) which is causing folds to begin with the { of a function declaration and the } of an if clause. I have checked using BBEdit's Text>Balance feature (which is very cool and should be added to TM) and the {'s and }'s are properly balanced. But, since the indentation sucks, I can't fold.
Please correct the folding behavior.
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--