5 <title>CodeMirror: Rust mode</title>
6 <link rel="stylesheet" href="../../lib/codemirror.css">
7 <script src="../../lib/codemirror.js"></script>
8 <script src="rust.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: Rust mode</h1>
15 <div><textarea id="code" name="code">
20 some(int, foo<float>),
24 fn check_crate(x: int) {
40 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
46 <p><strong>MIME types defined:</strong> <code>text/x-rustsrc</code>.</p>