4
<title>CodeMirror: Jinja2 mode</title>
5
<link rel="stylesheet" href="../../lib/codemirror.css">
6
<script src="../../lib/codemirror.js"></script>
7
<script src="jinja2.js"></script>
8
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
9
<link rel="stylesheet" href="../../doc/docs.css">
12
<h1>CodeMirror: Jinja2 mode</h1>
13
<form><textarea id="code" name="code">
14
<html style="color: green">
15
<!-- this is a comment -->
17
<title>Jinja2 Example</title>
21
{# this is a comment #}
22
{%- for item in li -%}
33
CodeMirror.fromTextArea(document.getElementById("code"), {mode:
34
{name: "jinja2", htmlMode: true}});