Location: PHPKode > projects > Peardrop CMS > peardrop/CodeMirror/mode/pascal/index.html
<!doctype html>
    <title>CodeMirror: Pascal mode</title>
    <link rel="stylesheet" href="../../lib/codemirror.css">
    <script src="../../lib/codemirror.js"></script>
    <script src="pascal.js"></script>
    <link rel="stylesheet" href="../../doc/docs.css">
    <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
    <h1>CodeMirror: Pascal mode</h1>

<div><textarea id="code" name="code">
(* Example Pascal code *)

while a <> b do writeln('Waiting');
if a > b then 
  writeln('Condition met')
  writeln('Condition not met');
for i := 1 to 10 do 
  writeln('Iteration: ', i:1);
  a := a + 1
until a = 10;
case i of
  0: write('zero');
  1: write('one');
  2: write('two')

      var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
        lineNumbers: true,
        matchBrackets: true,
        mode: "text/x-pascal"

    <p><strong>MIME types defined:</strong> <code>text/x-pascal</code>.</p>
Return current item: Peardrop CMS