Upgrade CodeMirror to 5.10.1 and now support fullscreen, jump-to-line in editor
This commit is contained in:
22
public/vendor/codemirror/mode/rust/index.html
vendored
Executable file → Normal file
22
public/vendor/codemirror/mode/rust/index.html
vendored
Executable file → Normal file
@@ -6,6 +6,7 @@
|
||||
|
||||
<link rel="stylesheet" href="../../lib/codemirror.css">
|
||||
<script src="../../lib/codemirror.js"></script>
|
||||
<script src="../../addon/mode/simple.js"></script>
|
||||
<script src="rust.js"></script>
|
||||
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
||||
<div id=nav>
|
||||
@@ -37,22 +38,25 @@ enum bar {
|
||||
|
||||
fn check_crate(x: int) {
|
||||
let v = 10;
|
||||
alt foo {
|
||||
1 to 3 {
|
||||
print_foo();
|
||||
if x {
|
||||
blah() + 10;
|
||||
match foo {
|
||||
1 ... 3 {
|
||||
print_foo();
|
||||
if x {
|
||||
blah().to_string();
|
||||
}
|
||||
}
|
||||
}
|
||||
(x, y) { "bye" }
|
||||
_ { "hi" }
|
||||
(x, y) { "bye" }
|
||||
_ { "hi" }
|
||||
}
|
||||
}
|
||||
</textarea></div>
|
||||
|
||||
<script>
|
||||
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
||||
lineNumbers: true
|
||||
lineNumbers: true,
|
||||
lineWrapping: true,
|
||||
indentUnit: 4,
|
||||
mode: "rust"
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user