Ace does not yet support code folding I think.
It was discussed as possible feature but not yet implemented as far as I know: http://groups.google.com/group/cloud9-ide/browse_thread/thre...
*an open source project based on the work from the people at Cloud9IDE (ajax.org) and Mozilla (Bespin / SkyWriter