Have multiple outlining blocks in outlining in WinForms SyntaxEditor
Outlining block
Consider a scenario where you collapse only a part of the outlining block in WinForms SyntaxEditor or the whole of it. For example, let #ifdef - #else - #endif be the collapsible block. When #ifdef is collapsed, the entire text between the #ifdef and #endif has to be collapsed.
But when the #else block is collapsed, only the text between the #else and #endif block has to be collapsed. Please refer to the test application attached that illustrates how you could do this. Please refer to the Config_Settings.txt file that contains the relevant Lexem and Split entries used for this purpose.
Reference link: https://help.syncfusion.com/windowsforms/syntax-editor/text-visualization#outlining
I hope you enjoyed learning about how to have multiple outlining blocks within outlining blocks in WinForms SyntaxEditor.
You can refer to our WinForms Syntax Editor feature tour page to know about its other groundbreaking feature representations and documentation, to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!