Fastcoloredtextbox.dll -
// Example: Configuring the textbox in code fctb = new FastColoredTextBox(); fctb.Language = Language.CSharp; fctb.Text = "public class Test {}"; fctb.SyntaxHighlightStyle = SyntaxHighlightStyle.Css; // Optional styling Controls.Add(fctb); Use code with caution. Copied to clipboard
Includes Undo/Redo, WordWrap, and Find/Replace. How to Use It (Implementation) FastColoredTextBox.dll
Supports built-in languages (CSharp, VB, HTML, XML, SQL, Lua) and custom highlighting. Code Folding: Allows collapsing/expanding code blocks. // Example: Configuring the textbox in code fctb
It is designed for Windows Forms. To use in WPF, you must use WindowsFormsHost . fctb.Language = Language.CSharp
The easiest way to get the full, functional DLL is through NuGet: Install-Package FCTB .
Due to its common use in script executors, the DLL may sometimes cause false-positive warnings from antivirus software.