Posted 16 years ago
by JesperTreetop
Version: 4.0.0276
Platform: .NET 2.0
Environment: Windows XP (32-bit)
When using C# regions, if the region's #endregion directive includes text (a "pp-message" token according to the C# specification), this text is visible when the region is folded.
When folded, it will appear like so:
The bolded Region name [A] is from the #region directive, and it's the gray bordered blob that represents and will expand the entire region. Region name [B] is the text following #endregion, and it is visible in plain black, as it'd be if it was unfolded alongside #endregion.
It doesn't matter whether the region label is the same or not in both places; the C# specification specifically says that "Matching #region and #endregion directives may have different pp-messages." The issue is simply that anything beyond #endregion in its line doesn't appear to fold, and that the entire line with #endregion in it should fold.
#region Region name [A]
//
#endregion Region name [B]
Region name [A] Region name [B]
It doesn't matter whether the region label is the same or not in both places; the C# specification specifically says that "Matching #region and #endregion directives may have different pp-messages." The issue is simply that anything beyond #endregion in its line doesn't appear to fold, and that the entire line with #endregion in it should fold.