~ubuntu-branches/ubuntu/utopic/codemirror-js/utopic

« back to all changes in this revision

Viewing changes to mode/ecl/index.html

  • Committer: Package Import Robot
  • Author(s): David Paleino
  • Date: 2012-04-12 12:25:28 UTC
  • Revision ID: package-import@ubuntu.com-20120412122528-8xp5a8frj4h1d3ee
Tags: upstream-2.23
Import upstream version 2.23

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
19
//  this is a singleline comment!
 
20
 
 
21
import ut;
 
22
r := 
 
23
  record
 
24
   string22 s1 := '123';
 
25
   integer4 i1 := 123;
 
26
  end;
 
27
#option('tmp', true);
 
28
d := dataset('tmp::qb', r, thor);
 
29
output(d);
 
30
</textarea></form>
 
31
    <script>
 
32
      var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
 
33
        tabMode: "indent",
 
34
        matchBrackets: true,
 
35
      });
 
36
    </script>
 
37
 
 
38
    <p>Based on CodeMirror's clike mode.  For more information see <a href="http://hpccsystems.com">HPCC Systems</a> web site.</p>
 
39
    <p><strong>MIME types defined:</strong> <code>text/x-ecl</code>.</p>
 
40
 
 
41
  </body>
 
42
</html>