CodeMirror: Html Embedded Scripts mode

1
<%
2
function hello(who) {
3
    return "Hello " + who;
4
}
5
%>
6
This is an example of EJS (embedded javascript)
7
<p>The program says <%= hello("world") %>.</p>
8
<script>
9
    alert("And here is some normal JS code"); // also colored
10
</script>
11
 
 

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)