AvaloniaEdit
AvaloniaEdit is a powerful text editor control for the Avalonia UI framework. It is a port of the renowned AvalonEdit component originally developed for WPF.
It allows developers to add sophisticated code editing capabilities to their cross-platform Avalonia applications, supporting features like syntax highlighting, code completion, folding, and more.
Key Features
- Syntax Highlighting: Supports both legacy
.xshddefinitions and modern TextMate grammars (viaTextMateSharp). - Code Completion: Intelligent auto-complete windows with icons and descriptions.
- Code Folding: Collapse and expand blocks of code.
- Search & Replace: Built-in search panel with regex support.
- Virtualization: Efficiently handles large text files.
- Customizable: extensible margins, input handling, and rendering.
- Formatting: Line numbers, whitespace display, word wrapping, and hyperlinking.
Packages
The project is split into two main NuGet packages:
- Avalonia.AvaloniaEdit: The core text editor control.
- AvaloniaEdit.TextMate: An extension library for supporting VS Code-style TextMate grammars and themes.
License
AvaloniaEdit is licensed under the MIT License.