forked from jsfiddle/togetherjs
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (41 loc) · 1.05 KB
/
index.html
File metadata and controls
47 lines (41 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<title>ACE in Action</title>
<style type="text/css" media="screen">
*{
margin: 0;
padding: 0;
}
#editor {
width:600px;
height:700px;
}
</style>
</head>
<body>
<div id="editor">function foo(items) {
var x = "All this is syntax highlighted";
return x;
}</div>
<button id="start-togetherjs" type="button"
onclick="TogetherJS(this); return false"
data-end-togetherjs-html="End TogetherJS">
Start TogetherJS
</button>
<script src="//cdnjs.cloudflare.com/ajax/libs/ace/1.1.01/ace.js" type="text/javascript" charset="utf-8"></script>
<script>
// TogetherJS configuration would go here, but we'll talk about that
// later
TogetherJSConfig_hubBase = "http://127.0.0.1:8080";
TogetherJSConfig_dontShowClicks = '#editor'
</script>
<script src="/togetherjs/build/togetherjs-min.js"></script>
<script>
var editor = ace.edit("editor");
var session = editor.getSession()
editor.setTheme("ace/theme/monokai");
session.setMode("ace/mode/javascript");
</script>
</body>
</html>