26 lines
521 B
Plaintext
26 lines
521 B
Plaintext
|
|
|
|
define("codemirror/lib/codemirror" ]
|
|
|
|
|
|
pecs/yap_kernel/prolog"
|
|
],
|
|
|
|
function(CodeMirror){
|
|
|
|
var onload =
|
|
function(CodeMirror){
|
|
console.log("I am being loaded");
|
|
editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
|
parserfile: "kernelspecs/yap_kernel/prolog.js"
|
|
|
|
lineNumbers: true,
|
|
mode: "text/x-prolog"
|
|
});
|
|
|
|
|
|
return {onload:onload}
|
|
}
|
|
}
|
|
);
|