Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ImGuiColorTextEdit

ImGuiColorTextEdit: a code editor widget with syntax highlighting, and a text diff viewer.

Create a TextEditor, give it its text and language (set_text(), set_language()), and call its render() at each frame. This version is a rewrite, by Johan A. Goossens, of the editor by Balázs Jákó.

Upstream repository · The book’s page

Modules

In imgui_bundle (from imgui_bundle import imgui_color_text_edit):

Demos using it

The demos of the catalog that use it (the pictures link to their code and to the playground).

Code editor

Code editor

A code editor widget, with syntax highlighting, multiple cursors, a diff view, filters, annotations and context menus.

More

Each tab shows one feature, and a checkbox shows its source. The editor is ImGuiColorTextEdit, by Johan A. Goossens.

Uses: code editor

Python: ▶︎ Run · Code
C++: ▶︎ Run · Code

Minimal HTML page

Minimal HTML page

Dear ImGui Bundle apps can run entirely in the browser using Pyodide.

More

The HTML file below is a complete, self-contained app in about 80 lines - no server, no build step.

Uses: code editor

Python: ▶︎ Run · Code