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

Opensource

6040 readers
206 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
[–] MastKalandar@feddit.online 1 points 15 hours ago (1 children)

Is there any similar lightweight syntax highlighting editor that can be downloaded ?

[–] GottaHaveFaith@fedia.io 1 points 14 hours ago

similar as in tui editors?

Nano actually has syntax highlighting

micro

helix which also mention kakoune/neovim but they're modal editors