We're making progress on our quest to create the perfect Mac OS X ActionScript editor: Today, we're going to integrate the Adobe AS2 and AS3 Language References directly into the open-source jEdit editor, bringing context-sensitive help files up at the stroke of a key!
To do this, we're going to need three things: The InfoViewer plugin (which should already be installed with your base jEdit application), and two jEdit macros that we'll provide here. If you need a refresher on how to install plugins or new macros, check the
previous tutorials in this series.
The InfoViewer is basically a small browser in a floating or docked panel within jEdit. If you don't already see it, you should be able to find it under your Plugins menu. I prefer to dock mine at the right-hand side of the editor, so it stays out of the way but is generally available. You can do this by selecting the small dropdown arrow in the upper left of any floating dock and choosing which side of the interface on which to dock it:

I've created two macros — one to search for information within the ActionScript 2 reference files, and one for the ActionScript 3 files. You can install them both, or just the one that interests you (I've got them both installed myself, and I've assigned the keyboard shortcuts CMD-F1 to search the AS2 files, and SHIFT-F1 for the AS3 files). To install, you can copy the code below, or simply download and extract the files from this zipped archive and save them in your ~/.jedit/macros directory (or better yet, make a subdirectory called "ActionScript" within the macros folder and keep all your AS macros in one neat section — rather like a TextMate "bundle").
(more…)