Browse Source

Изменить 'ace/index.html'

master
KaiSD 5 years ago
parent
commit
ec9af6e40a
1 changed files with 2 additions and 7 deletions
  1. +2
    -7
      ace/index.html

+ 2
- 7
ace/index.html View File

@@ -21,18 +21,13 @@
</head> </head>
<body> <body>


<pre id="editor">function foo(items) {
var i;
for (i = 0; i &lt; 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>

Loading…
Cancel
Save