Is RichTextEditor available in GTK3?

Hello,

I’m developing GTK3 app for Linux using C style APIs.

I wanted to know is there any RichTextEditor available in GTK?

I came across a way to use GtkTextView, GtkTextBuffer, and tags to craft the experience somewhat like rich text editor. But want to know if there is any built-in or alternative artifacts for it.

Thanks.

Have you checked gtksourceview yet? I understand its latest version requires GTK4. Perhaps there is an older version that is compatible with GTK3. Any particular reason why you’re using GTK3 instead of GTK4?

Abiword

(This sentence is here because my post must be at least 20 characters.)

GtkSourceView appears mainly suited for syntax highlighting, primarily for read-only text or code. It doesn’t support rich text formatting like making selected text bold.

(We chose GTK3 about 18 months ago for its stability and broader API support compared to GTK4, which better fit our project needs at the time.)

If you’re looking at something like React’s RTE control, then: no, there’s no ready made GTK3 widget or library for it. Most applications with RTE needs ship either something completely custom made, or they use GtkTextBuffer with custom tags.

1 Like