Dear ImGui Bundle includes libraries for syntax-highlighted text editing and markdown rendering.
imgui_md - Markdown Rendering¶
Introduction¶
imgui_md renders markdown content directly in your ImGui interface. Supports headers, bold, italic, links, code blocks, lists, and more.
Quick example:
from imgui_bundle import imgui_md, immapp
def gui():
imgui_md.render("""
# Hello Markdown
This is **bold** and this is *italic*.
- List item 1
- List item 2
""")
immapp.run(gui, with_markdown=True)You may also use imgui_md.render_unindented(s) – it removes the leading indentation of the markdown string before rendering, which is useful when the string is defined inside a function with indentation.
#include "immapp/immapp.h"
#include "imgui_md_wrapper/imgui_md_wrapper.h"
void gui() {
ImGuiMd::Render(R"(
# Hello Markdown
This is **bold** and this is *italic*.
- List item 1
- List item 2
)");
}
int main() {
ImmApp::RunWithMarkdown(gui);
return 0;
}Full Demo¶
Try online | Python | C++
Documented APIs¶
Python: imgui_md.pyi
C++: imgui_md_wrapper.h
ImGuiColorTextEdit - Syntax Highlighting Editor¶
Introduction¶
ImGuiColorTextEdit is a colorizing text editor for ImGui. It supports syntax highlighting for C, C++, Python, HLSL, SQL, AngelScript, Lua, and more.
Dear ImGui Bundle uses a fork with additional fixes and features.

ImGuiColorTextEdit: syntax highlighting editor with multiple color palettes.
Features:
Multiple color palettes (dark, light, retro blue, mariana)
Language definitions for common languages
Line numbers, error markers, breakpoints
Undo/redo, copy/paste, find/replace
Full Demo¶
Try online | Python | C++
Documented APIs¶
Python: imgui
_color _text _edit .pyi C++: TextEditor.h