move a few things away in to-be-integrated/
[myslice.git] / to-be-integrated / third-party / codemirror-3.15 / demo / variableheight.html
1 <!doctype html>
2 <html>
3   <head>
4     <meta charset="utf-8">
5     <title>CodeMirror: Variable Height Demo</title>
6     <link rel="stylesheet" href="../lib/codemirror.css">
7     <script src="../lib/codemirror.js"></script>
8     <script src="../mode/markdown/markdown.js"></script>
9     <script src="../mode/xml/xml.js"></script>
10     <link rel="stylesheet" href="../doc/docs.css">
11
12     <style type="text/css">
13       .CodeMirror {border: 1px solid silver; border-width: 1px 2px; }
14       .cm-header { font-size: 150%; font-family: arial; }
15       .cm-strong { font-size: 140%; }
16     </style>
17   </head>
18   <body>
19     <h1>CodeMirror: Variable Height Demo</h1>
20
21     <form><textarea id="code" name="code"># A First Level Header
22
23 **Bold** text in a normal-size paragraph.
24
25 And a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long, wrapped line with a piece of **big** text inside of it.
26
27 ## A Second Level Header
28
29 Now is the time for all good men to come to
30 the aid of their country. This is just a
31 regular paragraph.
32
33 The quick brown fox jumped over the lazy
34 dog's back.
35
36 ### Header 3
37
38 > This is a blockquote.
39
40 > This is the second paragraph in the blockquote.
41 >
42 > ## This is an H2 in a blockquote       
43 </textarea></form>
44     <script id="script">
45       var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
46         lineNumbers: true,
47         lineWrapping: true,
48         mode: "markdown"
49       });
50     </script>
51   </body>
52 </html>