5 <title>CodeMirror: Haxe mode</title>
6 <link rel="stylesheet" href="../../lib/codemirror.css">
7 <script src="../../lib/codemirror.js"></script>
8 <script src="haxe.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>
13 <h1>CodeMirror: Haxe mode</h1>
15 <div><textarea id="code" name="code">
19 class Foo<T> extends Three
26 public static inline function doFoo(obj:{k:Int, l:Float}):Int
32 var var1 = new Array();
36 // The following line should not be colored, the variable is scoped out
43 private function bar():Void
46 var t1:String = "1.21";
54 var t2:Float = cast(3.2);
55 var t3:haxe.Timer = new haxe.Timer();
56 var t4 = {k:Std.int(t2), l:Std.parseFloat(t1)};
60 bob = new Foo<Int>
62 public var okFoo(default, never):Float;
63 var noFoo(getFoo, null):Int;
64 function getFoo():Int {
76 rgb (r:Int,g:Int,b:Int);
81 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
88 <p><strong>MIME types defined:</strong> <code>text/x-haxe</code>.</p>