.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
CodeMirror
Home Manual Code
Language modes Soy (Closure Template)
Soy (Closure Template) mode
{namespace example}
/** * Says hello to the world. */ {template .helloWorld} {@param name: string} {@param? score: number} Hello {$name} !
{if $score} {$score} points {else} no score {/if}
{/template}
{template .alertHelloWorld kind="js"} alert('Hello World'); {/template}
var editor = CodeMirror.fromTextArea(document.getElementById("code"), { lineNumbers: true, matchBrackets: true, mode: "text/x-soy", indentUnit: 2, indentWithTabs: false });
A mode for Closure Templates (Soy).
MIME type defined: text/x-soy .