FastColoredTextBox
AvalonEdit
Our great sponsors
FastColoredTextBox | AvalonEdit | |
---|---|---|
1 | 3 | |
1,196 | 1,761 | |
- | 1.5% | |
0.0 | 5.1 | |
7 months ago | about 1 month ago | |
C# | C# | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
FastColoredTextBox
-
How should i go about making a library to color code (syntax highlighting) a user has written?
You can check on GitHub for some projects that have done the same, something like https://github.com/PavelTorgashov/FastColoredTextBox
AvalonEdit
-
How should i go about making a library to color code (syntax highlighting) a user has written?
For the most part it's best to just use something like AvalonEdit that already implements it for you. There's some documentation and if you dig a long time ago there was a book about how it was made (along with SharpDevelop) that may still be findable.
-
Better approach for sending text from worker thread to UI thread?
I lied in the OP. The text box I'm using is actually the AvalonEdit text editor and it apparently doesn't support binding and they think it would cause performance issues: https://github.com/icsharpcode/AvalonEdit/issues/84
-
I made a thing
Not OP, but at work I recently implemented an HTML/CSS/JS code editor and used AvalonEdit to great effect for syntax highlighting in a large multi-line textbox. I was also able to add custom linting via regexs and it's got custom theming capabilities. Super happy with it.
What are some alternatives?
ScintillaNET - A Windows Forms control, wrapper, and bindings for the Scintilla text editor.
Avalonia - Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET Foundation community project.
UWP Community Toolkit - The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
MaterialSkin - Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MaterialDesignInXamlToolkit - Google's Material Design in XAML & WPF, for C# & VB.Net.
Xamarin.Forms - Xamarin.Forms Official Home
MahApps.Metro - A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.
Ookii.Dialogs.Wpf - Awesome dialogs for Windows Desktop applications built with Microsoft .NET (WPF)
Dragablz - Dragable and tearable tab control for WPF