...
To collapse an outline block, click the minus sign at the left margin of the block or place the cursor in the block and press Ctrl+M. To expand an outline block, click the plus sign at the left margin of the block or place the cursor in the block and press Ctrl+M.
In this code, the Template Editor has automatically created outline blocks for the script block and the function, and the developer has added a manual outline with a region:
...