Created
March 21, 2012 16:05
-
-
Save 0b10011/2149039 to your computer and use it in GitHub Desktop.
Minimum test case for CodeMirror2 issue #455 (https://github.com/marijnh/CodeMirror2/issues/455)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>CodeMirror: Autocomplete Demo</title> | |
<link rel="stylesheet" href="http://codemirror.net/lib/codemirror.css"> | |
<script src="http://codemirror.net/lib/codemirror.js"></script> | |
<script src="http://codemirror.net/mode/javascript/javascript.js"></script> | |
<style type="text/css">.CodeMirror {width:200px;}</style> | |
</head> | |
<body> | |
<form><textarea id="code" name="code">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque iaculis purus vitae. | |
Text.</textarea></form> | |
<script> | |
var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |
lineNumbers: true, | |
lineWrapping: true | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment