Tern Toolings - angelozerr/tern.java GitHub Wiki

Tern Toolings are for helping with extending Tern IDE, and for advanced Tern IDE users.

Tern Wizards

Tern IDE provides several wizards :

Tern Wizard

Tern JSON type definitions

This wizard gives you the capability to create a Tern JSON type definition file.

Tern (Server) plugins

This wizard gives you the capability to create a Tern Server plugin file.

See Creating Tern Plugins for more informations.

Tern Web Browser (Editor) Wizards

Tern IDE provides wizards to create an Web Browser HTML editors like Eclipse Orion, CodeMirror or Ace with Tern :

Tern Wizard Web Browser

Wizard for Tern with Orion

Select Orion editor :

Tern Wizard Web Browser Select Orion

Select JSON type definition :

Tern Wizard Web Browser Select def

Select server plugin :

Tern Wizard Web Browser Select plugin

Select a container where you wish to generate the Orion editor index.html :

Tern Wizard Web Browser Orion editor

Finish button generates Orion editor :

Tern Wizard Web Browser index.html

If you open the generated index.html in your browser, you will see Orion editor and completion available with Ctrl+Space :

Tern Wizard Web Browser completion

Completion will use JSON type definition and server plugin taht you have selected. Here a screenshot with AngularJS that it has been selected :

Tern Wizard Web Browser completion

Glue between tern and Orion is managed with tern.orion.

Wizard for Tern with CodeMirror

You can generate CodeMirror editor too (see explanation with Orion).

Glue between tern and Ace is managed with the official CodeMirror tern addon.

Wizard for Tern with Ace

You can generate Ace editor too (see explanation with Orion).

Glue between tern and Ace is managed with tern.ace.