<!doctype html>
<head>
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="mode/css/css.js"></script>
<style>
body {
	background-color: #eee;
}
</style>
</head>
<body>
<div id="codeeditor"></div>
<script>

var editor = CodeMirror(document.getElementById("codeeditor"), {
	value: "#test {\n\tposition: absolute;\n\twidth: auto;\n\theight: 50px;\n}",
	mode: "css",
	tabSize: 5,
	lineNumbers: true,
	firstLineNumber: 50
});
</script>
</body>
</html>