xml.xml 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  4. <head>
  5. <meta charset="UTF-8"></meta>
  6. <title>ACE Autocompletion demo</title>
  7. <style type="text/css" media="screen">
  8. body { overflow: hidden; }
  9. #editor {
  10. margin: 0; position: absolute;
  11. top: 0; bottom: 0; left: 0; right: 0;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <pre id="editor"></pre>
  17. <script src="kitchen-sink/require.js"></script>
  18. <script><![CDATA[
  19. // setup paths
  20. require.config({paths: { "ace" : "../lib/ace"}});
  21. // load ace and extensions
  22. require(["ace/ace", "ace/ext/language_tools"], function(ace) {
  23. var langagueTools = require("ace/ext/language_tools");
  24. var editor = ace.edit("editor");
  25. editor.session.setMode("ace/mode/xml");
  26. editor.setTheme("ace/theme/tomorrow");
  27. });
  28. ]]></script>
  29. <script src="./show_own_source.js"></script>
  30. </body>
  31. </html>