openFrameworks ImGui textEdit
README
ofxImGuiTextEdit
openFrameworks addon wrapping ImGuiColorTextEdit — a syntax-highlighting text editor widget for Dear ImGui.
Uses the actively maintained santaclose fork which supports the latest ImGui versions.

Dependencies
Usage
#include "ofxImGui.h"
include "ofxImGuiTextEdit.h"
ofxImGui::Gui gui;
TextEditor editor;
void ofApp::setup() {
gui.setup();
editor.SetLanguageDefinition(TextEditor::LanguageDefinitionId::Cpp);
editor.SetText("// Hello world\n");
}
void ofApp::draw() {
gui.begin();
if (ImGui::Begin("Editor")) {
editor.Render("##editor");
}
ImGui::End();
gui.end();
}Supported Languages
C, C++, C#, Python, Lua, JSON, SQL, GLSL, HLSL, AngelScript.
Examples
- example-textEdit — Minimal code editor with C++ syntax highlighting.
License
ImGuiColorTextEdit is licensed under the MIT License. See
libs/ImGuiColorTextEdit/LICENSE for details.
ofxAddons