A lightweight, extensible text-editor control with syntax highlighting and multi-caret support.
BellColorTextBox is a pure-C# library that brings fast, code-friendly editing to any .NET 6+ application.
It ships with an ImGui back-end out of the box, and you can plug in other renderers (e.g., WinForms, WPF, SDL) by implementing a small IBackend interface.
| Package | Latest Version |
|---|---|
| BellColorTextBox.Net | |
| BellColorTextBox.ImGuiNet |
| Project | Framework / Library |
|---|---|
| BellColorTextBox.Net | .NET 6.0 or later |
| BellColorTextBox.ImGuiNet | BellColorTextBox.Net, ImGui.NET (≥ 1.89.7.1) |
- Syntax Highlighting — token-based or regex-based, fully themeable
- Multiple Carets & Selections —
Ctrl+Clickto add cursors, each with independent undo/redo - Code Folding — hide regions without breaking selections or clipboard ops
- Auto-Indent & Tab Modes — spaces/tabs, overwrite mode, smart EOL handling
- Word Wrap & Read-Only Mode
- Custom Languages — implement
ILanguageto add your own highlighter
- Complete documentation site
- Find / Replace / Go to
- Auto-completion & intellisense hooks
- Smart auto-scroll on typing
- Paste handling for multiple carets
- More built-in language grammars
| Module | Status |
|---|---|
| BellColorTextBox.Net (C#) | ✅ Feature-complete |
| BellColorTextBox (C++) | ⏳ Planned |
- C#
- JSON
- Protocol Buffers
- SQL
| Platform | ImGuiNet (C#) | WinForms (C#) | ImGui (C++) |
|---|---|---|---|
| Windows | ✅ | ⏳ | ⏳ |
| Linux | ⏳ | ❌ | ⏳ |
| macOS | ⏳ | ❌ | ⏳ |
Legend: ✅ available ⏳ planned ❌ not planned
dotnet add package BellColorTextBox.ImGuiNet