Sha256: 24c510e2788f366899b624852a81bb66524b9656263c734fe58e7f0d6ac389bb

Contents?: true

Size: 1.1 KB

Versions: 21

Compression:

Stored size: 1.1 KB

Contents

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>CodeMirror: Pig Latin mode</title>
    <link rel="stylesheet" href="../../lib/codemirror.css">
    <script src="../../lib/codemirror.js"></script>
    <script src="pig.js"></script>
    <link rel="stylesheet" href="../../doc/docs.css">
    <style>.CodeMirror {border: 2px inset #dee;}</style>
  </head>
  <body>
    <h1>CodeMirror: Pig Latin mode</h1>

<form><textarea id="code" name="code">
-- Apache Pig (Pig Latin Language) Demo
/* 
This is a multiline comment.
*/
a = LOAD "\path\to\input" USING PigStorage('\t') AS (x:long, y:chararray, z:bytearray);
b = GROUP a BY (x,y,3+4);
c = FOREACH b GENERATE flatten(group) as (x,y), SUM(group.$2) as z;
STORE c INTO "\path\to\output";

--
</textarea></form>

    <script>
      var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
        lineNumbers: true,
        indentUnit: 4,
        mode: "text/x-pig"
      });
    </script>

    <p>
        Simple mode that handles Pig Latin language.
    </p>

    <p><strong>MIME type defined:</strong> <code>text/x-pig</code>
    (PIG code)
</html>

Version data entries

21 entries across 19 versions & 4 rubygems

Version Path
mdbe-0.1.0 public/libs/codemirror/mode/pig/index.html
bonethug-0.0.17 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/pig/index.html
bonethug-0.0.16 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/pig/index.html
bonethug-0.0.15 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/pig/index.html
bonethug-0.0.14 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/pig/index.html
bonethug-0.0.13 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/pig/index.html
bonethug-0.0.12 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/pig/index.html
bonethug-0.0.11 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/pig/index.html
bonethug-0.0.10 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/pig/index.html
bonethug-0.0.7 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/pig/index.html
bonethug-0.0.6 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/pig/index.html
bonethug-0.0.5 skel/project_types/silverstripe3/public/abc/lib/codemirror/mode/pig/index.html
maglev-database-explorer-0.0.5 public/libs/codemirror/mode/pig/index.html
maglev-database-explorer-0.0.4 public/libs/codemirror/mode/pig/index.html
maglev-database-explorer-0.0.3 public/libs/codemirror/mode/pig/index.html
maglev-database-explorer-0.0.2 public/libs/codemirror/mode/pig/index.html
maglev-database-explorer-0.0.1 public/libs/codemirror/mode/pig/index.html
swagr-0.0.10 examples/examples01/static/js/codemirror/mode/pig/index.html
swagr-0.0.10 templates/static/js/codemirror/mode/pig/index.html
swagr-0.0.8 examples/examples01/static/js/codemirror/mode/pig/index.html