this post was submitted on 01 May 2026
7 points (100.0% liked)

Opensource

6032 readers
115 users here now

A community for discussion about open source software! Ask questions, share knowledge, share news, or post interesting stuff related to it!

CreditsIcon base by Lorc under CC BY 3.0 with modifications to add a gradient



founded 2 years ago
MODERATORS
 

Syntax Highlighting

Edit v2 adds the Lightweight Syntax Highlighter. It has a ~40kB footprint for a dozen languages plus runtime, barely grows with each language added, and runs at >100MB/s.

The highlighter is based on a simple programming language that combines regular expressions with explicit control flow. It's designed such that the runtime can be easily ported to other languages, including JavaScript.

From 1.2.1 to 2.0.0, the edit binary size increased from 267 to 330 kB for win exe and 217 to 300 kB for linux binary.

What is edit? README intro:

A simple editor for simple needs.

This editor pays homage to the classic MS-DOS Editor, but with a modern interface and input controls similar to VS Code. The goal is to provide an accessible editor that even users largely unfamiliar with terminals can easily use.

you are viewing a single comment's thread
view the rest of the comments
[–] DishaweslemOride@lemmy.org 1 points 6 hours ago (1 children)

Oh, Microsoft Edit. With rust? Shouldn’t this but C# or something? EDIT.NET

[–] Kissaki@programming.dev 1 points 5 hours ago (1 children)

Dotnet can't quite reach the minimal executable size that was a critical focus of this project. :)

[–] DishaweslemOride@lemmy.org 1 points 5 hours ago

Maybe they could use Electron ;)