CDS.CSharpScript2.ScintillaEditor
2.6.0
See the version list below for details.
dotnet add package CDS.CSharpScript2.ScintillaEditor --version 2.6.0
NuGet\Install-Package CDS.CSharpScript2.ScintillaEditor -Version 2.6.0
<PackageReference Include="CDS.CSharpScript2.ScintillaEditor" Version="2.6.0" />
<PackageVersion Include="CDS.CSharpScript2.ScintillaEditor" Version="2.6.0" />
<PackageReference Include="CDS.CSharpScript2.ScintillaEditor" />
paket add CDS.CSharpScript2.ScintillaEditor --version 2.6.0
#r "nuget: CDS.CSharpScript2.ScintillaEditor, 2.6.0"
#:package CDS.CSharpScript2.ScintillaEditor@2.6.0
#addin nuget:?package=CDS.CSharpScript2.ScintillaEditor&version=2.6.0
#tool nuget:?package=CDS.CSharpScript2.ScintillaEditor&version=2.6.0
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.6.0)
- Scintilla5.NET (>= 7.0.0)
-
net10.0-windows7.0
- CDS.CSharpScript2 (>= 2.6.0)
- Scintilla5.NET (>= 7.0.0)
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.8.0 | 0 | 8/10/2026 |
| 2.6.1 | 42 | 8/7/2026 |
| 2.6.0 | 45 | 8/7/2026 |
| 2.5.10 | 83 | 8/4/2026 |
| 2.5.9 | 82 | 8/4/2026 |
| 2.5.8 | 85 | 8/4/2026 |
| 2.5.7 | 104 | 7/29/2026 |
| 2.5.6 | 104 | 7/27/2026 |
| 2.4.5 | 92 | 7/27/2026 |
| 2.4.4 | 119 | 7/7/2026 |
| 2.4.3 | 110 | 7/7/2026 |
| 2.4.2 | 107 | 7/6/2026 |
| 2.4.1 | 114 | 7/1/2026 |
| 2.3.1-alpha.0.5 | 61 | 7/1/2026 |