- Download an Orion stable build unzip and run it. Here's some instructions to help get you started.
- Connect and login into Orion - http://localhost:8080/
- Navigate down to org.eclipse.orion.client.core/static/js/compiled/coding-editor.js -- shortcut
- Open a new tab and go to the Plugin Registry page -- http://localhost:8080/view-registry.html
- Paste the following URL (http://jsbeautifier.org/orion/jsbeautify.html) into the install box on the right and click install. If you mess up click the red "X" to clear the registry and start again.
- Return to your editor tab and refresh the page.
- You should see a new "bat" icon on the action tab right next to coding-editor. Click it.
All the interactions here are browser-side with no server involvement other than to provide the HTML page. Instead, Orion's opening an iframe (and eventually a web worker) and then using cross-document messaging to get the plugin to perform the "editorAction".
In terms of the code required to write a plugin you need just one script "orion-plugin.js" as well as your implementation. Here's the HTML for another very simple "editorAction" that you can try out.
For the moment in M5 "editorAction" is our one and only extension point. We're working on M6 now and figuring out other places where we want to offer similar extensibility. If you have ideas or better still would like to try your hand at writing plugins we'd love for you to get involved. Feel free to visit us on IRC at #eclipse-orion and pipe-in.