AvalonEdit
FastColoredTextBox
Our great sponsors
AvalonEdit | FastColoredTextBox | |
---|---|---|
3 | 1 | |
1,760 | 1,196 | |
1.4% | - | |
5.1 | 0.0 | |
about 1 month ago | 7 months ago | |
C# | C# | |
MIT License | GNU General Public License v3.0 or later |
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.
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.
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
What are some alternatives?
ScintillaNET - A Windows Forms control, wrapper, and bindings for the Scintilla text editor.
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.
Avalonia - Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET Foundation community project.
MaterialSkin - Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
Xamarin.Forms - Xamarin.Forms Official Home
MaterialDesignInXamlToolkit - Google's Material Design in XAML & WPF, for C# & VB.Net.
MahApps.Metro - A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.
Dragablz - Dragable and tearable tab control for WPF
Ookii.Dialogs.Wpf - Awesome dialogs for Windows Desktop applications built with Microsoft .NET (WPF)