Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CodeMirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Moritz Aurel Pascal Schubotz
CodeMirror
Commits
c12eb1e7
Commit
c12eb1e7
authored
11 years ago
by
Marijn Haverbeke
Browse files
Options
Downloads
Patches
Plain Diff
[tern addon] Add some basic info to the demo page
parent
f5fb7e9a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
demo/tern.html
+14
-0
14 additions, 0 deletions
demo/tern.html
with
14 additions
and
0 deletions
demo/tern.html
+
14
−
0
View file @
c12eb1e7
...
...
@@ -70,6 +70,20 @@ var randomStr = myMod.randomElt(myMod.strList);
var randomInt = myMod.randomElt(myMod.intList);
</textarea></p>
<p>
Demonstrates integration of
<a
href=
"http://ternjs.net/"
>
Tern
</a>
and CodeMirror. The following keys are bound:
</p>
<dl>
<dt>
Ctrl-Space
</dt><dd>
Autocomplete
</dd>
<dt>
Ctrl-I
</dt><dd>
Find type at cursor
</dd>
<dt>
Alt-.
</dt><dd>
Jump to definition (Alt-, to jump back)
</dd>
<dt>
Ctrl-Q
</dt><dd>
Rename variable
</dd>
</dl>
<p>
Documentation is sparse for now. See the top of
the
<a
href=
"../addon/tern/tern.js"
>
script
</a>
for a rough API
overview.
</p>
<script>
function
getURL
(
url
,
c
)
{
var
xhr
=
new
XMLHttpRequest
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment