Well folding support is already build in.
in 0.9.29/0.9.30 folding works for pascal, xml, html, diff, lfm.
in 0,9.28[.2] it does not for all of them.
I just dropped a synedit on an empty form, dropped an xml-highlighter, added the highlighter to synedit, and filed in some XML
=> folding was all there....
So if you use 0.9.30, please give some more details, or post a *small* sample project.
There is actually no documentation on how to configure existing folding. But the synedit testcase does some of it, so you can look there.