.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
CodeMirror
Home Manual Code
Language modes Html Embedded Scripts
Html Embedded Scripts mode
This is an example of EJS (embedded javascript) The program says .
alert("And here is some normal JS code"); // also colored
var editor = CodeMirror.fromTextArea(document.getElementById("code"), { lineNumbers: true, mode: "application/x-ejs", indentUnit: 4, indentWithTabs: true });
Mode for html embedded scripts like JSP and ASP.NET. Depends on multiplex and HtmlMixed which in turn depends on JavaScript, CSS and XML. Other dependencies include those of the scripting language chosen.
MIME types defined: application/x-aspx (ASP.NET), application/x-ejs (Embedded Javascript), application/x-jsp (JavaServer Pages) and application/x-erb