Nonymous Outliner provides an improved outline view for the Orion JavaScript editor. It uses UglifyJS's parser to build an abstract syntax tree of your JavaScript code, then constructs a hierarchical visualization of your functions. The names are created using the "Function-Object Consumption" algorithm described in the Splash Wavefront 2011 Paper: Naming Anonymous JavaScript Functions , by Salman Mirghasemi, John J. Barton, and Prof. Claude Petitpierre
Requirements
- Orion 0.3M2 (a build newer than 09-16-2011 is recommended)
- http://orionhub.org is running 0.3M2+ now
JavaScript Libraries Demo
- Open the Demo site
- You can't and don't have to login; ignore the warning.
- Navigate to a .js file
- In the tall gray box on the left side you will see a dark gray arrow. Use it to select "Nonymous Structural Outline".
(Due to a bug you have to reselect the outliner for each file. 0
One Page Demo
Another demo page shows a number of examples all on one page: http://blog.johnjbarton.com:8080/file/B/lib/nonymous/index.html. No need to install the plugin to see this demo.
Installing into Orion
- Log in to Orion, and click the Plugins link on the global toolbar.
- Paste http://johnjbarton.github.com/outliner/nonymousPlugin.html into the text box and click Install. After a moment, you should see a success message.
- Open a JavaScript file in the Orion editor. You should now see a drop-down menu in the outline pane.
- Click the drop-down arrow and choose "Nonymous Structural Outline".
Uninstalling
- Log in to Orion and click the Plugins link on the global toolbar.
- Uninstall
nonymousPlugin.html.
License
Google BSD, see license.txt.