Theme Inspinia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!doctype html>
  2. <title>CodeMirror: ECL mode</title>
  3. <meta charset="utf-8"/>
  4. <link rel=stylesheet href="../../doc/docs.css">
  5. <link rel="stylesheet" href="../../lib/codemirror.css">
  6. <script src="../../lib/codemirror.js"></script>
  7. <script src="ecl.js"></script>
  8. <style>.CodeMirror {border: 1px solid black;}</style>
  9. <div id=nav>
  10. <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
  11. <ul>
  12. <li><a href="../../index.html">Home</a>
  13. <li><a href="../../doc/manual.html">Manual</a>
  14. <li><a href="https://github.com/codemirror/codemirror">Code</a>
  15. </ul>
  16. <ul>
  17. <li><a href="../index.html">Language modes</a>
  18. <li><a class=active href="#">ECL</a>
  19. </ul>
  20. </div>
  21. <article>
  22. <h2>ECL mode</h2>
  23. <form><textarea id="code" name="code">
  24. /*
  25. sample useless code to demonstrate ecl syntax highlighting
  26. this is a multiline comment!
  27. */
  28. // this is a singleline comment!
  29. import ut;
  30. r :=
  31. record
  32. string22 s1 := '123';
  33. integer4 i1 := 123;
  34. end;
  35. #option('tmp', true);
  36. d := dataset('tmp::qb', r, thor);
  37. output(d);
  38. </textarea></form>
  39. <script>
  40. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
  41. </script>
  42. <p>Based on CodeMirror's clike mode. For more information see <a href="http://hpccsystems.com">HPCC Systems</a> web site.</p>
  43. <p><strong>MIME types defined:</strong> <code>text/x-ecl</code>.</p>
  44. </article>