ImGuiColorTextEditNet 0.1.8

dotnet add package ImGuiColorTextEditNet --version 0.1.8
                    
NuGet\Install-Package ImGuiColorTextEditNet -Version 0.1.8
                    
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="ImGuiColorTextEditNet" Version="0.1.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ImGuiColorTextEditNet" Version="0.1.8" />
                    
Directory.Packages.props
<PackageReference Include="ImGuiColorTextEditNet" />
                    
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 ImGuiColorTextEditNet --version 0.1.8
                    
#r "nuget: ImGuiColorTextEditNet, 0.1.8"
                    
#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 ImGuiColorTextEditNet@0.1.8
                    
#: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=ImGuiColorTextEditNet&version=0.1.8
                    
Install as a Cake Addin
#tool nuget:?package=ImGuiColorTextEditNet&version=0.1.8
                    
Install as a Cake Tool

ImGuiColorTextEditNet

C# port of syntax highlighting text editor for ImGui Screenshot

C# Specific notes:

  • The way the syntax highlighting works has been changed
  • Regex-based syntax highlighting hasn't been ported yet
  • There's likely to still be a few regressions from the porting process
  • A small demo project using veldrid is provided.

Description from original project:

This started as my attempt to write a relatively simple widget which provides text editing functionality with syntax highlighting. Now there are other contributors who provide valuable additions.

While it relies on Omar Cornut's https://github.com/ocornut/imgui, it does not follow the "pure" one widget - one function approach. Since the editor has to maintain a relatively complex and large internal state, it did not seem to be practical to try and enforce fully immediate mode. It stores its internal state in an object instance which is reused across frames.

The code is (still) work in progress, please report if you find any issues.

Main features

  • approximates typical code editor look and feel (essential mouse/keyboard commands work - I mean, the commands I normally use 😃)
  • undo/redo
  • UTF-8 support
  • works with both fixed and variable-width fonts
  • extensible syntax highlighting for multiple languages
  • identifier declarations: a small piece of description can be associated with an identifier. The editor displays it in a tooltip when the mouse cursor is hovered over the identifier
  • error markers: the user can specify a list of error messages together the line of occurence, the editor will highligh the lines with red backround and display error message in a tooltip when the mouse cursor is hovered over the line
  • large files: there is no explicit limit set on file size or number of lines (below 2GB, performance is not affected when large files are loaded (except syntax coloring, see below)
  • color palette support: you can switch between different color palettes, or even define your own
  • whitespace indicators (TAB, space)
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows 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 (1)

Showing the top 1 popular GitHub repositories that depend on ImGuiColorTextEditNet:

Repository Stars
csinkers/ualbion
A remake of the 1995 RPG Albion (requires data from an install of the original game)
Version Downloads Last Updated
0.1.8 140 7/7/2025
0.1.7 271 11/2/2024
0.1.5 280 8/12/2023
0.1.4 216 7/16/2023
0.1.3 392 6/11/2023
0.1.2 207 6/11/2023
0.1.1 423 2/19/2023
0.1.0 400 1/27/2023