Actipro SyntaxEditor - Windows Forms .NET Control
Code Outlining
SyntaxEditor makes it easy to define collapsable ranges of text, thus providing folding functionality.
SyntaxEditor supports two modes of code outlining, automatic and manual.
In automatic outlining, you provide code in your syntax language implementation to tell SyntaxEditor how to outline a document.
SyntaxEditor provides several helper classes to accomplish this so that much of the work of implementing outlining is already complete.
In manual outlining, the end user of the application is able to manually determine what parts of code should be outlined.
Folding
Whenever a text range is folded, custom text can be designated to its represent the collapsed node.
This enables you to do things like display the name of a #region or the first several characters of a comment in the representation.
A C# document before outlining nodes are collapsed
Popup tooltips activate when the mouse is hovered over a collapsed token block.
The tooltip displays the contents of the token block and can optionally show syntax highlighted text.
The same document with collapsed nodes and the mouse hovering over some collapsed text
Outlining Hierarchy
Another benefit of using SyntaxEditor's outlining features are that it makes it easier to navigate through
the contents of a document, by navigating the nodes of the outlining hierarchy.
The text contained within each outlining node can be obtained and each node can be assigned semantic parse data.
|