How do you build an in-game text editor?

Godot Version

4.5

Question

Hello everyone.

I would like to learn how to build an in-game text editor.

Think of it like a simplified Notepad++ inside a game.

The goal is to allow players to write notes, highlight text, and similar features.

Are there any examples or tutorials available?

Thanks.

I guess you would use the TextEdit-Node. This wont have all the features of notepad++ but you can extend its features by hand

1 Like

You may also consider CodeEdit.

CodeEdit is a specialized TextEdit designed for editing plain text code files. It has many features commonly found in code editors such as line numbers, line folding, code completion, indent management, and string/comment management.

Is it the Godot code editor? I wonder if someone implemented it in games.

There’s an open source project Text Forge, a modular text editor created fully in Godot, you can check it out here and maybe draw inspirations for your project:

1 Like