Back to Showdoc

CodeMirror

web/editor.md/lib/codemirror/mode/htmlembedded/index.html

3.8.3507 B
Original Source

Html Embedded Scripts mode

<% function hello(who) { return "Hello " + who; } %> This is an example of EJS (embedded javascript)

The program says <%= hello("world") %>.

Mode for html embedded scripts like JSP and ASP.NET. Depends on HtmlMixed which in turn depends on JavaScript, CSS and XML.
Other dependancies include those of the scriping language chosen.

MIME types defined: application/x-aspx (ASP.NET), application/x-ejs (Embedded Javascript), application/x-jsp (JavaServer Pages)