Fix: merge conflict
[myslice.git] / to-be-integrated / third-party / codemirror-3.15 / mode / pig / index.html
1 <!doctype html>
2 <html>
3   <head>
4     <meta charset="utf-8">
5     <title>CodeMirror: Pig Latin mode</title>
6     <link rel="stylesheet" href="../../lib/codemirror.css">
7     <script src="../../lib/codemirror.js"></script>
8     <script src="pig.js"></script>
9     <link rel="stylesheet" href="../../doc/docs.css">
10     <style>.CodeMirror {border: 2px inset #dee;}</style>
11   </head>
12   <body>
13     <h1>CodeMirror: Pig Latin mode</h1>
14
15 <form><textarea id="code" name="code">
16 -- Apache Pig (Pig Latin Language) Demo
17 /* 
18 This is a multiline comment.
19 */
20 a = LOAD "\path\to\input" USING PigStorage('\t') AS (x:long, y:chararray, z:bytearray);
21 b = GROUP a BY (x,y,3+4);
22 c = FOREACH b GENERATE flatten(group) as (x,y), SUM(group.$2) as z;
23 STORE c INTO "\path\to\output";
24
25 --
26 </textarea></form>
27
28     <script>
29       var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
30         lineNumbers: true,
31         indentUnit: 4,
32         mode: "text/x-pig"
33       });
34     </script>
35
36     <p>
37         Simple mode that handles Pig Latin language.
38     </p>
39
40     <p><strong>MIME type defined:</strong> <code>text/x-pig</code>
41     (PIG code)
42 </html>