
One of the "practices" we use when coding with #region/#endregion is to put the same name on the closing #endregion as the start (I wrote an add-in which does this amongst other things). It means that people scrolling back up through an expanded document know what the region above is when they see the closing tag.
However the Actipro control seems to not display this like VS.Net does (which ignores the text).
e.g.
#region Constructor
public MyClass()
{
}
#endregion Constructor
In the ActoPro SyntaxEditor SDI Editor example, this results in the word "Constructor" repeated and hanging out to the right if the outlining region is collapsed.
By design or not? I would have thought following the VS.Net model of any text after #endregion being hidden would be the sensible behaviour?
Absolutely brilliant control by the way - I have a bunch of projects I'm looking to use this with. I'm fed up with ICSharpCode, battled with Scintilla and this looks like the mutts nuts to me.
Regards,
Grant.
[Modified at 04/06/2007 12:13 PM]
However the Actipro control seems to not display this like VS.Net does (which ignores the text).
e.g.
#region Constructor
public MyClass()
{
}
#endregion Constructor
In the ActoPro SyntaxEditor SDI Editor example, this results in the word "Constructor" repeated and hanging out to the right if the outlining region is collapsed.
By design or not? I would have thought following the VS.Net model of any text after #endregion being hidden would be the sensible behaviour?
Absolutely brilliant control by the way - I have a bunch of projects I'm looking to use this with. I'm fed up with ICSharpCode, battled with Scintilla and this looks like the mutts nuts to me.
Regards,
Grant.
[Modified at 04/06/2007 12:13 PM]