Wikipedia para siempre
ShareCode
Permalink: http://www.treeweb.es/u/974/ 01/02/2011

ShareCode

1 <!DOCTYPE html>2 <html lang="en">3 <head>4  <meta charset="UTF-8">5  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">6  <title>Editor online Mozilla</title>7  <style type="text/css" media="screen">8  body {9  overflow: hidden;10  }11  12  #editor { 13  margin: 0;14  position: absolute;15  top: 0;16  bottom: 0;17  left: 0;18  right: 0;19  }20  </style>21 </head>22 <body>23 24 <pre id="editor">function foo(items) {25  for (var i = 0; i &lt; items.length; i++) {26  alert("Ace Rocks " + items[i]);27  }28 }</pre>29 30  31 <script src="src/ace.js" type="text/javascript" charset="utf-8"></script>32 <script src="src/theme-twilight.js" type="text/javascript" charset="utf-8"></script>33 <script src="src/mode-javascript.js" type="text/javascript" charset="utf-8"></script>34 <script>35 window.onload = function() {36  var editor = ace.edit("editor");37  editor.setTheme("ace/theme/twilight");38  39  var JavaScriptMode = require("ace/mode/javascript").Mode;40  editor.getSession().setMode(new JavaScriptMode());41 };42 </script>43 44 </body>45 </html>46 


Este ShareCode tiene versiones:
  1. Editor online Mozilla ... (24/04/2013)
  2. Editor online Mozilla ... (24/04/2013)
  3. Editor online Mozilla ... (24/04/2013)
  4. Editor online Mozilla ... (24/04/2013)
Enlace
El enlace para compartir es: