← Back

ofxImGuiTextEdit

github.com/ofxyz/ofxImGuiTextEdit · @ofxyz
OF 0.12 GUI

openFrameworks ImGui textEdit

0 0 Last commit 2mo ago Created 5mo ago

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.

example-preview

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



License



ImGuiColorTextEdit is licensed under the MIT License. See libs/ImGuiColorTextEdit/LICENSE for details.

Get this addon

HTTPS
SSH