Our editor is based on CodeMirror and tern.js, and with just about 200 lines of code (plus 750 lines of JSON type definitions) we got an editor that provides code completion, shows inline help and links to more in depth documentation. Angelo Zerr (@angelozerr) made us aware of the capabilities of tern.js and was kind enough to write a first integration for Tabris.js. The code completion knows about different types of widgets and the associated properties.
I sometimes find myself pressing ctrl-1 for getting a quick fix, sadly to no avail. But this is only the start and we will reserve some time for future improvements. Anyhow, it is already incredibly practical for working with code snippets.
You can try it out directly here, if you want to run the code directly on your phone you need to get a Tabris.js developer app (App Store, Play Store) and sign up on tabrisjs.com. The editor integrated there aumatically saves your script and makes it available to your mobile device.
Eclipse and tern.js
We obviously thought about using Orion, but with Angelo’s contribution available and tern.js not being compatible with Orion we decided to start with Codemirror. There are plans to integrate Orion with tern.js (see bug #432940). Angelo is also working on a JSDT tern.js integration.