-
Notifications
You must be signed in to change notification settings - Fork 480
Open
Labels
Description
Hi,
How is it possible to disable folding blocks within code comments?
// Code Comments
e.SetFoldingMarkers(@"/\*(.*)", @"\*/", RegexOptions.Multiline | RegexOptions.Singleline | RegexOptions.IgnoreCase);
// Example Code
e.SetFoldingMarkers(@"foo", @"bar", RegexOptions.Multiline | RegexOptions.Singleline | RegexOptions.IgnoreCase);
There should not be any folding markers against foo-bar within /* */ comments, .i.e:
/*
foo
bar
*/
I want to avoid using RegEx Lookbehind and Lookaheads, as this is likely to cause performance issues.
What would be the best approach?
- Introduce an overload within the SetFoldingMarkers method to indicate no sub-folding blocks?
- Do something within fctb_VisibleRangeChanged, fctb_VisibleRangeChangedDelayed, fctb_TextChangedDelayed etc.?
- Do something with the fctb.FindEndOfFoldingBlockStrategy ?
- Something else?
The bug exists within the PowerfulCSharpEditor example provided:
Any help or suggestions would be greatly appreciated, as I would like to give my end-users the best user experience possible,
