CMIContent Marketing InstituteContent directory

News · General · Archive

CodeMirror: Oz mode

Home News

.CodeMirror {border: 1px solid #aaa;}

CodeMirror

Home Manual Code

Language modes Oz

Oz mode

declare fun {Ints N Max} if N == Max then nil else {Delay 1000} N|{Ints N+1 Max} end end

fun {Sum S Stream} case Stream of nil then S [] H|T then S|{Sum H+S T} end end

local X Y in thread X = {Ints 0 1000} end thread Y = {Sum 0 X} end {Browse Y} end

MIME type defined: text/x-oz .

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

More in Archive · More in General · More in News