|
@@ -21,18 +21,13 @@ |
|
|
</head> |
|
|
</head> |
|
|
<body> |
|
|
<body> |
|
|
|
|
|
|
|
|
<pre id="editor">function foo(items) { |
|
|
|
|
|
var i; |
|
|
|
|
|
for (i = 0; i < items.length; i++) { |
|
|
|
|
|
alert("Ace Rocks " + items[i]); |
|
|
|
|
|
} |
|
|
|
|
|
}</pre> |
|
|
|
|
|
|
|
|
<pre id="editor"></pre> |
|
|
|
|
|
|
|
|
<script src="src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script> |
|
|
<script src="src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script> |
|
|
<script> |
|
|
<script> |
|
|
var editor = ace.edit("editor"); |
|
|
var editor = ace.edit("editor"); |
|
|
editor.setTheme("ace/theme/twilight"); |
|
|
editor.setTheme("ace/theme/twilight"); |
|
|
editor.session.setMode("ace/mode/javascript"); |
|
|
|
|
|
|
|
|
editor.session.setMode("ace/mode/markdown"); |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
</body> |
|
|
</body> |