xml.xml 995 B

1234567891011121314151617181920212223242526272829303132
  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. <!-- load ace -->
  18. <script src="../src/ace.js"></script>
  19. <!-- load ace language_tools extension -->
  20. <script src="../src/ext-language_tools.js"></script>
  21. <script>
  22. var langagueTools = require("ace/ext/language_tools");
  23. var editor = ace.edit("editor");
  24. editor.session.setMode("ace/mode/xml");
  25. editor.setTheme("ace/theme/tomorrow");
  26. });
  27. ]]></script>
  28. <script src="./show_own_source.js"></script>
  29. </body>
  30. </html>