Ultron
Ultron is a web based monospace text-editor with syntax highlighting, completely written in rust.
I wrote this code editor for my very specific usecase:
- real monospace on GUI editors for ascii diagrams
GUI editors don't handle monospace font quite well for CJK characters or any unicode characters that have are more than 1 character wide.
Terminal have no problem displaying them. Fonts in GUI seems to adjust characters on how closely they are lined up together. That is good for reading and all, but not for Ascii diagrams.
The solution would be to wrap each characters with a Ropey - to handle the buffer. Similar projects: Note: We can not use xi-editor for this, because this needs to run on the browser. Xi-core requires opening channels and have a protocol for passing and receiving data from the backend. Ropey will do that part. Then, navigate to http://localhost:4001n
is the unicode_width. The style for this char will then be set with a multiplier to the normal width.
Dependencies:
Build and run the project
git clone https://github.com/ivanceras/ultron.git
cd ultron/ultron-web
./start_optimized.sh
Demo
Patreon link