comparison kallithea/public/codemirror/mode/pascal/index.html @ 4539:b4d77d1c710c

codemirror: move everything to separate codemirror folder - splitting it up in css and js serves no purpose - but it should perhaps not show up directly in /codemirror ...
author Mads Kiilerich <madski@unity3d.com>
date Wed, 24 Sep 2014 14:24:40 +0200
parents kallithea/public/js/mode/pascal/index.html@d1addaf7a91e
children
comparison
equal deleted inserted replaced
4538:f8033bad5671 4539:b4d77d1c710c
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>CodeMirror: Pascal mode</title>
6 <link rel="stylesheet" href="../../lib/codemirror.css">
7 <script src="../../lib/codemirror.js"></script>
8 <script src="pascal.js"></script>
9 <link rel="stylesheet" href="../../doc/docs.css">
10 <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
11 </head>
12 <body>
13 <h1>CodeMirror: Pascal mode</h1>
14
15 <div><textarea id="code" name="code">
16 (* Example Pascal code *)
17
18 while a <> b do writeln('Waiting');
19
20 if a > b then
21 writeln('Condition met')
22 else
23 writeln('Condition not met');
24
25 for i := 1 to 10 do
26 writeln('Iteration: ', i:1);
27
28 repeat
29 a := a + 1
30 until a = 10;
31
32 case i of
33 0: write('zero');
34 1: write('one');
35 2: write('two')
36 end;
37 </textarea></div>
38
39 <script>
40 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
41 lineNumbers: true,
42 mode: "text/x-pascal"
43 });
44 </script>
45
46 <p><strong>MIME types defined:</strong> <code>text/x-pascal</code>.</p>
47 </body>
48 </html>