CDS.CSharpScript2.ScintillaEditor
2.3.1-alpha.0.5
See the version list below for details.
dotnet add package CDS.CSharpScript2.ScintillaEditor --version 2.3.1-alpha.0.5
NuGet\Install-Package CDS.CSharpScript2.ScintillaEditor -Version 2.3.1-alpha.0.5
<PackageReference Include="CDS.CSharpScript2.ScintillaEditor" Version="2.3.1-alpha.0.5" />
<PackageVersion Include="CDS.CSharpScript2.ScintillaEditor" Version="2.3.1-alpha.0.5" />
<PackageReference Include="CDS.CSharpScript2.ScintillaEditor" />
paket add CDS.CSharpScript2.ScintillaEditor --version 2.3.1-alpha.0.5
#r "nuget: CDS.CSharpScript2.ScintillaEditor, 2.3.1-alpha.0.5"
#:package CDS.CSharpScript2.ScintillaEditor@2.3.1-alpha.0.5
#addin nuget:?package=CDS.CSharpScript2.ScintillaEditor&version=2.3.1-alpha.0.5&prerelease
#tool nuget:?package=CDS.CSharpScript2.ScintillaEditor&version=2.3.1-alpha.0.5&prerelease
CDS.CSharpScript2.ScintillaEditor
Scintilla5-based WinForms editor control for C# script editing, powered by Roslyn.
Description
CDS.CSharpScript2.ScintillaEditor provides a drop-in WinForms UserControl that gives your
application a professional C# script editor backed by the Scintilla5 native editing component
and full Roslyn IntelliSense.
Features
- Syntax highlighting — real Roslyn token classification (keywords, types, literals, comments, …).
- Code completion — member lists, type suggestions, and smart single-letter prioritisation.
- Signature help (call tips) — parameter info as you type method calls.
- Hover tooltips — type and XML-doc info on mouse hover.
- Error indicators — squiggles and a live diagnostic list tied to the Roslyn compiler.
- Find/Replace — built-in find and replace dialog.
- Output panel — companion
RTFOutputPanelfor displaying script results.
Quick Start
Add ScintillaScriptEditor to a form and wire up a ScriptEnvironment:
using CDS.CSharpScript2;
using CDS.CSharpScript2.ScintillaEditor;
var editor = new ScintillaScriptEditor();
editor.Dock = DockStyle.Fill;
Controls.Add(editor);
// Setting Environment starts live analysis immediately
editor.API.Environment = ScriptEnvironment.Default;
Compile and run the script the user has typed:
var executable = await editor.API.CompileAsync();
if (!executable.HasErrors)
await executable.RunAsync();
All scripting properties and methods are accessed through editor.API to keep them
separate from the standard WinForms Control surface.
API Surface (editor.API)
| Member | Description |
|---|---|
Environment |
Get/set the ScriptEnvironment (references, namespaces, globals type). Setting it restarts live analysis. |
Script |
Get/set the script text shown in the editor. |
HasErrors |
true when the most recent live-analysis pass found at least one error. |
CurrentDiagnostics |
Diagnostics from the most recent analysis pass. |
CompileAsync() |
Full Roslyn compilation; returns an ExecutableScript. |
CurrentCompiledScript |
The result of the last CompileAsync() call, or null if the script has changed since. |
HighlightText(start, length) |
Highlights a range in the editor. |
ClearHighlightText() |
Removes the active highlight. |
ScriptChanged |
Event raised when the user modifies the script text. |
DiagnosticsUpdated |
Event raised when the live-analysis diagnostic set changes. |
See the CDS.CSharpScript2.WinForms.Sample project for a full working example.
Requirements
- .NET 10.0 (Windows)
- x64 or ARM64 — Scintilla5 is a native library; AnyCPU is not supported at runtime
Dependencies
- CDS.CSharpScript2 — core scripting engine
- Scintilla5.NET — managed wrapper for Scintilla5
Attributions
Icon by Flaticon Uicons
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- CDS.CSharpScript2 (>= 2.3.1-alpha.0.5)
- Scintilla5.NET (>= 6.1.2)
-
net10.0-windows7.0
- CDS.CSharpScript2 (>= 2.3.1-alpha.0.5)
- Scintilla5.NET (>= 6.1.2)
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 |
|---|---|---|
| 2.4.1 | 46 | 7/1/2026 |
| 2.3.1-alpha.0.5 | 38 | 7/1/2026 |