diff options
author | Valerio Virgillito | 2012-02-15 16:09:47 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-15 16:09:47 -0800 |
commit | d366c0bd1af6471511217ed574083e15059519b5 (patch) | |
tree | c8c9f9af761457e3c5f4c6774fb0fbba851df0c4 /imports/codemirror/mode/jinja2/index.html | |
parent | 997ce3fb65f27b3d6f331f63b5dc22d3c7fb8f1e (diff) | |
parent | b85bfb54aaca3ccca3c1ef09115de925cd67f4e9 (diff) | |
download | ninja-d366c0bd1af6471511217ed574083e15059519b5.tar.gz |
Merge branch 'refs/heads/integration'
Diffstat (limited to 'imports/codemirror/mode/jinja2/index.html')
-rwxr-xr-x | imports/codemirror/mode/jinja2/index.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/imports/codemirror/mode/jinja2/index.html b/imports/codemirror/mode/jinja2/index.html new file mode 100755 index 00000000..021a2829 --- /dev/null +++ b/imports/codemirror/mode/jinja2/index.html | |||
@@ -0,0 +1,37 @@ | |||
1 | <!doctype html> | ||
2 | <html> | ||
3 | <head> | ||
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"> | ||
10 | </head> | ||
11 | <body> | ||
12 | <h1>CodeMirror: Jinja2 mode</h1> | ||
13 | <form><textarea id="code" name="code"> | ||
14 | <html style="color: green"> | ||
15 | <!-- this is a comment --> | ||
16 | <head> | ||
17 | <title>Jinja2 Example</title> | ||
18 | </head> | ||
19 | <body> | ||
20 | <ul> | ||
21 | {# this is a comment #} | ||
22 | {%- for item in li -%} | ||
23 | <li> | ||
24 | {{ item.label }} | ||
25 | </li> | ||
26 | {% endfor -%} | ||
27 | </ul> | ||
28 | </body> | ||
29 | </html> | ||
30 | </textarea></form> | ||
31 | <script> | ||
32 | var editor = | ||
33 | CodeMirror.fromTextArea(document.getElementById("code"), {mode: | ||
34 | {name: "jinja2", htmlMode: true}}); | ||
35 | </script> | ||
36 | </body> | ||
37 | </html> | ||