Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[orion-dev] Try out a new outline view for Javascript

Recently I've been experimenting with UglifyJS's parse-js library [1] for building _javascript_ syntax trees. I've used it to provide a version of the outline view that shows your _javascript_ functions in a tree, rather than the flat list we currently get from JSLint.

It's packaged as an Orion plugin, which you can try out like this:


To revert, uninstall newoutlinePlugin.html and uncomment the line from Step 2.

The plugin uses a few heuristics to infer the names of anonymous functions. If you find cases where the names are confusing or wrong, please let me know.

Mark


[1] https://github.com/mishoo/UglifyJS/blob/master/lib/parse-js.js

Back to the top