1. Lazarus already has some experimental code folding: Environmnent -> Editor Options -> General -> Code folding (experimental)
2. Although Lazarus uses Synedit, it is more like a heavily modified SynEdit from +/- 2000 or 2001. It would be nice if all the changes to the original synedit could be merged, but it is a quiet a task.