Create Collapsible Code Blocks in Delphi Code Editor using the {$REGION} directive
In Delphi 2006 (both Win32 and .Net) you can apply a special {$REGION 'Region Name'} directive to mark a "named" collapsible regions in the code editor.
To mark code as a region, surround it with the REGION and ENDREGION directives. You may include a caption that will be displayed when the code is folded and hidden.
Read the full tip to learn how to Create Collapsible Code Blocks in Delphi Code Editor using the {$REGION} directive.
Related: A First Look at (Borland Developer Studio) Delphi 2006 | Using Delphi Compiler Directives | How to enable .NET Compiler Warnings when using the dcc32 compiler?



How do I stop them from jumping open all the time?
The slightest syntax error, and you can go through your entire file closing the ones you don’t want right now.
C# regions do not do that. (I have D2007)
You can’t since the collapsed/expanded state of regions in Delphi isn’t saved. It’s a useless feature as implemented because the collapsed state is so transient.