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.


huh, looks like I missed filling the URL, lol. I added it now, thanks for the note. It also explains why the cross reference didn’t show up 🤦
https://github.com/microsoft/edit/releases/tag/v2.0.0
Oh, Microsoft Edit. With rust? Shouldn’t this but C# or something? EDIT.NET
Dotnet can’t quite reach the minimal executable size that was a critical focus of this project. :)
Maybe they could use Electron ;)