Minimizing Sections of Code?

I know in MonoDevelop you can minimize code in functions, but is there a way to define other areas to minimize or something? This would be great for longer scripts.

Thanks.

What about

#region My Code

// Some code

#endregion

http://msdn.microsoft.com/en-us/library/9a1ybwek(v=vs.71).aspx

Thanks… Except that does nothing in Unity…

#region/#endregion work perfectly in C# in monodevelop. Code folding appears mostly broken for JS though.

That explains a lot.