2 unstable releases

0.4.0 Aug 5, 2023
0.3.0 Jul 2, 2023

#458 in Text editors

35 downloads per month
Used in 2 crates (via ultron-web)

MIT license

2MB
26K SLoC

Perl 5K SLoC // 0.1% comments D 2.5K SLoC // 0.1% comments Objective-C++ 2.5K SLoC // 0.1% comments C++ 2.5K SLoC // 0.1% comments Rust 2K SLoC // 0.3% comments Python 1.5K SLoC // 0.6% comments JavaScript 1.5K SLoC // 0.5% comments Java 1K SLoC // 0.5% comments C# 822 SLoC // 0.7% comments Ruby 678 SLoC // 0.5% comments Scala 622 SLoC // 0.6% comments Shell 617 SLoC // 0.7% comments Go 605 SLoC // 0.8% comments Erlang 588 SLoC // 0.9% comments Clojure 513 SLoC // 0.7% comments Objective-C 503 SLoC // 0.5% comments OCaml 485 SLoC // 0.2% comments Lua 458 SLoC // 0.6% comments C 334 SLoC // 0.6% comments PHP 324 SLoC // 0.8% comments Groovy 293 SLoC // 0.2% comments ASP 290 SLoC // 0.7% comments TCL 211 SLoC // 0.4% comments Batch 127 SLoC // 0.8% comments R 81 SLoC // 0.8% comments Common Lisp 51 SLoC // 0.7% comments Haskell 43 SLoC // 0.7% comments SQL 27 SLoC // 0.7% comments Ruby HTML 23 SLoC Pascal 8 SLoC // 0.6% comments

Ultron

A very simple web base editor with syntax highlighting and theming. It also has undo/redo support

Pre-requisite

  • rust with wasm32-unknown-unknown toolchain
  • wasm-pack
  • basic-http-server
  • just

Install rust wasm-pack

cargo install basic-http-server
cargo install just

Build and run the editor

git clone https://github.com/ivanceras/ultron.git

cd ultron
just serve

Then, navigate to http://localhost:4004

Demo

link

What is working?

  • syntax highlighting
  • undo -
  • redo -

What's lacking?

  • key composition, ie: typing unicode character
  • auto-indent
  • auto-pair
  • remapping
  • Selection
  • Cut
  • Copy
  • Paste

Dependencies

~6MB
~105K SLoC