emmet.html 890 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>ACE Emmet demo</title>
  6. <style type="text/css" media="screen">
  7. body {
  8. overflow: hidden;
  9. }
  10. #editor {
  11. margin: 0;
  12. position: absolute;
  13. top: 0;
  14. bottom: 0;
  15. left: 0;
  16. right: 0;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <pre id="editor"></pre>
  22. <!-- load emmet code and snippets compiled for browser -->
  23. <script src="https://cloud9ide.github.io/emmet-core/emmet.js"></script>
  24. <!-- load ace -->
  25. <script src="../src/ace.js"></script>
  26. <!-- load ace emmet extension -->
  27. <script src="../src/ext-emmet.js"></script>
  28. <script>
  29. var editor = ace.edit("editor");
  30. editor.session.setMode("ace/mode/html");
  31. // enable emmet on the current editor
  32. editor.setOption("enableEmmet", true);
  33. </script>
  34. <script src="./show_own_source.js"></script>
  35. </body>
  36. </html>