Fix: merge conflict
[myslice.git] / to-be-integrated / third-party / codemirror-3.15 / mode / pascal / index.html
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>