// 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
Supports built-in languages (CSharp, VB, HTML, XML, SQL, Lua) and custom highlighting. Code Folding: Allows collapsing/expanding code blocks. FastColoredTextBox.dll
The FastColoredTextBox.dll is a specialized .NET Windows Forms text box control used for syntax highlighting, code folding, and large text editing, commonly utilized in script editors, IDEs, and code-related projects. Here is the complete information regarding the component: // Example: Configuring the textbox in code fctb
To help you get started with the right version, are you using: (WinForms) NET 6/7+ ? The FastColoredTextBox
In Visual Studio, right-click the Toolbox, select Choose Items , and browse to select the FastColoredTextBox.dll . Usage Example:
The project is open-source. You can download the source and build the DLL from the PavelTorgashov/FastColoredTextBox GitHub repository .
Includes Undo/Redo, WordWrap, and Find/Replace. How to Use It (Implementation)