2
0

index.html 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>CodeMirror: ECL mode</title>
  5. <link rel="stylesheet" href="../../lib/codemirror.css">
  6. <script src="../../lib/codemirror.js"></script>
  7. <script src="ecl.js"></script>
  8. <link rel="stylesheet" href="../../doc/docs.css">
  9. <style>.CodeMirror {border: 1px solid black;}</style>
  10. </head>
  11. <body>
  12. <h1>CodeMirror: ECL mode</h1>
  13. <form><textarea id="code" name="code">
  14. /*
  15. sample useless code to demonstrate ecl syntax highlighting
  16. this is a multiline comment!
  17. */
  18. // this is a singleline comment!
  19. import ut;
  20. r :=
  21. record
  22. string22 s1 := '123';
  23. integer4 i1 := 123;
  24. end;
  25. #option('tmp', true);
  26. d := dataset('tmp::qb', r, thor);
  27. output(d);
  28. </textarea></form>
  29. <script>
  30. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
  31. </script>
  32. <p>Based on CodeMirror's clike mode. For more information see <a href="http://hpccsystems.com">HPCC Systems</a> web site.</p>
  33. <p><strong>MIME types defined:</strong> <code>text/x-ecl</code>.</p>
  34. </body>
  35. </html>