CSharpTextEditor 0.1.12-alpha

This is a prerelease version of CSharpTextEditor.
dotnet add package CSharpTextEditor --version 0.1.12-alpha
                    
NuGet\Install-Package CSharpTextEditor -Version 0.1.12-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CSharpTextEditor" Version="0.1.12-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSharpTextEditor" Version="0.1.12-alpha" />
                    
Directory.Packages.props
<PackageReference Include="CSharpTextEditor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CSharpTextEditor --version 0.1.12-alpha
                    
#r "nuget: CSharpTextEditor, 0.1.12-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CSharpTextEditor@0.1.12-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CSharpTextEditor&version=0.1.12-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CSharpTextEditor&version=0.1.12-alpha&prerelease
                    
Install as a Cake Tool

<a href="https://www.nuget.org/packages/CSharpTextEditor/">alternate text is missing from this package README image</a> <a href="https://www.nuget.org/packages/CSharpTextEditor/">alternate text is missing from this package README image</a>

CSharpTextEditor

A WinForms Control for displaying and editing C# code. Useful for creating and editing C# scripts from within your WinForms app.

It has the following features:

  • Roslyn-based syntax highlighting
  • Syntax/Compilation error reporting
  • Supports Light mode (VS2022 Blue), Dark mode (VS2022 Dark), and custom palettes
  • Handles most VS keyboard edit shortcuts
  • Allows multi-caret editing via box select
  • Gives code completion suggestions
  • Undo/redo history

Installation

To install the NuGet package, run the following command in the Package Manager Console:

dotnet add package CSharpTextEditor

Getting Started

To get started, just place the CodeEditorBox control into your WinForms control/form and start writing some C#! You can set the text that goes into it using the SetText method, and get the text from it using GetText.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.12-alpha 73 2/22/2025
0.1.11-alpha 93 2/27/2024
0.1.10-alpha 166 12/16/2023
0.1.9-alpha 102 12/10/2023
0.1.8-alpha 103 12/2/2023
0.1.7-alpha 101 11/29/2023
0.1.5-alpha 89 11/27/2023