I suspect that not everywhere shut the # region using # endregion So I wanted to check it out with TIDY (or so I thought so check)
So I made a small little script
#region 1
#region 2
#region 3
#region 4
#endregion
#endregion
#endregion
and run TIDY the effect was that
#region 1
#region 2
#region 3
#region 4
#endregion 4
#endregion 3
#endregion 2
basically correct, taking into account that I forgot about the closure of the clause EDIT: Directive #region 1
a console show that some