<title>CodeMirror: Haxe mode</title>
<link rel=stylesheet href="../../doc/docs.css">
<link rel="stylesheet" href="../../lib/codemirror.css">
<script src="../../lib/codemirror.js"></script>
<script src="haxe.js"></script>
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
<li><a href="../../index.html">Home</a>
<li><a href="../../doc/manual.html">Manual</a>
<li><a href="https://github.com/codemirror/codemirror">Code</a>
<li><a href="../index.html">Language modes</a>
<li><a class=active href="#">Haxe</a>
<div><p><textarea id="code-haxe" name="code">
class Foo<T> extends Three
public static inline function doFoo(obj:{k:Int, l:Float}):Int
// The following line should not be colored, the variable is scoped out
private function bar():Void
var t2:Float = cast(3.2);
var t3:haxe.Timer = new haxe.Timer();
var t4 = {k:Std.int(t2), l:Std.parseFloat(t1)};
public var okFoo(default, never):Float;
var noFoo(getFoo, null):Int;
<p><textarea id="code-hxml">
var editor = CodeMirror.fromTextArea(document.getElementById("code-haxe"), {
editor = CodeMirror.fromTextArea(document.getElementById("code-hxml"), {
<p><strong>MIME types defined:</strong> <code>text/x-haxe, text/x-hxml</code>.</p>