💾 Archived View for gemini.ctrl-c.club › ~nttp › toys › toyed › native.gmi captured on 2024-05-26 at 16:38:18. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-03-21)

-=-=-=-=-=-=-

ToyEd Native

A toy text editor in C++ 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 grayscale icons on the toolbar and a glossy appearance, showing its own source code.

ToyEd is written in 570 lines of C++ (see below), but has many expected features:

Download

ToyEd is open source under the Boost license. Packages include source code:

ToyEd Native 1.1 for amd64 Linux (20K)

ToyEd Native 1.1 for x86 Linux (21K)

TildeGit project page

As of 5 February 2023, the code seems to work right, but hasn't been tested much. Please back up your data.

The user interface should be fairly obvious.

System requirements

Building ToyEd Native from source requires a C++11 compiler and the FLTK library, version 1.3 (or 1.4, reportedly). So far it's been tried with success on Linux and Haiku. A makefile is included, but it does little more than

	g++ -o toyed -lfltk main.cpp

Minimum screen resolution: 800x480. Recommended: 1024x768.

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 Native is a port of the original text editor written in Tcl/Tk:

ToyEd home page

It shares most of the same features and overall design.

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