3
$\begingroup$

In some programming languages (e.g. C#, Visual Basic) there are language constructs that have no effect on the execution of code whatsoever, but exist solely to allow grouping fragments of code into regions (that can be nested, and can have captions). A region can be easily collapsed or expanded in most GUI code editors supporting these languages. The collapsed form displays only the caption of the region inline, but can also display the content summary in a tooltip when hovered by the mouse pointer. Regions sometimes are useful to see a high-level structure of code, while working on a particular piece within a single expanded region.


Expanded region in C#


Collapsed region in C#


Question: Is there a similar feature in Mathematica?

$\endgroup$
  • $\begingroup$ I marked this as a duplicate because I believe it is. If you disagree please tell me why. If not, may I use your example image to improve that question? $\endgroup$ – Mr.Wizard Dec 5 '13 at 19:17
  • $\begingroup$ Since this one has been closed, I have posted some answer in the older one, have a look. $\endgroup$ – Leonid Shifrin Dec 5 '13 at 20:02
  • $\begingroup$ @Leonid Do you disagree with the close? $\endgroup$ – Mr.Wizard Dec 6 '13 at 0:34
  • $\begingroup$ @Mr.Wizard I guess not. $\endgroup$ – Leonid Shifrin Dec 6 '13 at 9:58