This is often referred to as 'code folding' and has been discussed Millions of times on this forum. At the moment, it is close to impossible to implement, as far as I know. Search the forum history for 'code folding', I hope you'll see that it is in a way a hot topic, but in another way it's just boring. (No offense intended.) ;-)
-- <http://forum.pspad.com/read.php?2,41045,41047> PSPad freeware editor http://www.pspad.com
