ToyEd

A toy text editor in Tcl/Tk for educational purposes.

ToyEd is a toy text editor made for fun and learning. It's not meant for serious use, but rather to be studied and built upon.

Screenshot of a simple text editor with a small toolbar and menu system but no icons, showing its own source code.

ToyEd is written in 700+ lines of Tcl/Tk (see below), but has many expected features:

See also:

ToyEd Native

Download

ToyEd is open source under the MIT license. See source code:

ToyEd version 1.3 (19K)

TildeGit project page

As of 23 Jan 2024, the editor has seen little use. Please back up your data.

The user interface should be fairly obvious. See also:

project description

project news

System requirements

Running ToyEd from source requires Tcl/Tk 8.6 or newer, with Tklib. Both are available on most Linux distributions, or else from the tcl-lang.org website:

Tcl Developer Exchange

Recommended screen resolution: 800x600.

FAQ

Q: Have you considered adding syntax highlighting?

A: I'd love to, but that would be quite involved, especially for multiple languages, and ToyEd is meant to stay simple so it can serve as a basis for bigger apps. Not all text editors should be programming editors!

Credits and support

ToyEd was born from the experience of developing an older project, and reuses most code from it:

Scrunch Edit TT, a two-pane outliner for Markdown and org files

You can usually find me on IRC:

#ctrl-c channel of tilde.chat

or else on Mastodon:

No Time To Play on elekk.xyz

Would love to hear from you.

More small things