CMIContent Marketing InstituteContent directory

News · General · Archive

Codemirror Pig Latin Mode

Home News

 CodeMirror: Pig Latin mode

.CodeMirror {border: 2px inset #dee;}

CodeMirror

Home Manual Code

Language modes Pig Latin

Pig Latin mode

-- 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.

 CodeMirror: Pig Latin mode

.CodeMirror {border: 2px inset #dee;}

CodeMirror

Home Manual Code

Language modes Pig Latin

Pig Latin mode

-- 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";

--

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

Simple mode that handles Pig Latin language.

MIME type defined: text/x-pig (PIG code)

) as z; STORE c INTO "\path\to\output";

--

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

Simple mode that handles Pig Latin language.

MIME type defined: text/x-pig (PIG code)

More in Archive · More in General · More in News