Skip to content

Commit c12eb1e

Browse files
committed
[tern addon] Add some basic info to the demo page
1 parent f5fb7e9 commit c12eb1e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

demo/tern.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@ <h1>CodeMirror: Tern Demo</h1>
7070
var randomInt = myMod.randomElt(myMod.intList);
7171
</textarea></p>
7272

73+
<p>Demonstrates integration of <a href="http://ternjs.net/">Tern</a>
74+
and CodeMirror. The following keys are bound:</p>
75+
76+
<dl>
77+
<dt>Ctrl-Space</dt><dd>Autocomplete</dd>
78+
<dt>Ctrl-I</dt><dd>Find type at cursor</dd>
79+
<dt>Alt-.</dt><dd>Jump to definition (Alt-, to jump back)</dd>
80+
<dt>Ctrl-Q</dt><dd>Rename variable</dd>
81+
</dl>
82+
83+
<p>Documentation is sparse for now. See the top of
84+
the <a href="../addon/tern/tern.js">script</a> for a rough API
85+
overview.</p>
86+
7387
<script>
7488
function getURL(url, c) {
7589
var xhr = new XMLHttpRequest();

0 commit comments

Comments
 (0)