Add Ace editor

pull/2/head
Michael Crosby 12 years ago
parent fc01c93c27
commit a7e92093c2

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "lib/ace-builds"]
path = lib/ace-builds
url = git@github.com:ajaxorg/ace-builds.git

@ -0,0 +1 @@
Subproject commit cf536740d866276b65cfd351610001c2a841e751

@ -1,17 +1,20 @@
<!--<script src="/lib/ace/src/ace.js" type="text/javascript" charset="utf-8"></script>--> <script src="/lib/ace-builds/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<h2>Build image:</h2>
<h2>Builder:</h2> <div class="detail">
<div id="response" class="alert alert-{{ alertClass }}">
{{ response }}
</div>
<div id="response" class="alert alert-{{ alertClass }}"> <div id="editor">
{{ response }}
</div>
<div id="editor"> </div>
</div> <script>
ace.config.set('basePath', '/lib/ace-builds/src-noconflict/');
<script> var editor = ace.edit("editor");
var editor = ace.edit("editor"); editor.setTheme("ace/theme/clouds");
editor.setTheme("/lib/ace/theme/monokai"); editor.getSession().setMode("ace/mode/batchfile");
editor.getSession().setMode("/lib/ace/mode/javascript"); </script>
</script> </div>

Loading…
Cancel
Save