Asterisk is a Web-based minimalistic code editor written in CoffeeScript running on node.js with WebSockets.
I made this editor because I want to have 100% control over how everything worked. I put it on github because I wanted to link people to it. Its an odd to have the editor.
- small and simple you can mold it to your liking.
- minimalism philosophy no tabs, bars, panels just code.
- web-based host this on your server access from anywhere.
- WebSockets real time and responsive.
- MIT license.
Every thing is moving to the web and I feel that programming will move there too. No longer are we confined to a single device but move freely between laptops, desktops and even tablets. But the web moves with us. You could have all your tools installed on a server and use VNC to access them. VNC is clunky and draw delay and jpeg artifacts are very jaring. You could opt out to use ssh with vi or emacs. But then again just like VNC you need SSH client installed. I for one can't stand the input delay and the text font rednering. I want nice fonts and beautiful colors. That is why I wrote this editor.
Under the hood
Asterisk devides into two main parts: the server part asterisk.coffee and client.coffee.
- websoket connection
- command UI (find, replace, open, other commands)
- key input system
Simplest syntax highlighter there is. Modeled after the Crimson editor (http://www.crimsoneditor.com/). The basic premise is that it needs to be fast and simple. It does not try to parse the language grammar entirely it only tries to:
- highlight key words
- highlight strings
- highlight comments
Thats it. The highlight specification are very simple. Just common keywards and some string and comment matching.
Because it does not parse the full grammer it does not break or flicker as much when type because the sytnax is messedup. This is big contrast to CodeMirror - great highlighter that tries to do everything.
Editor it self is just a text area. This text area is hidden and a ghost div is put in place. This ghost