		var lineList = code.split("\n");
	var lineCount = lineList.length;
	var lineText = "";
	for(var i=0; i<lineCount; ++i){
		lineText += (i + 1) + "\n";
	}
	document.getElementById("line_number").innerHTML = "<pre>" + lineText + "</pre>";
		

	
	}

    function replaceKeyDown( newText ){
     
            var editor = document.getElementById("code_view");
	        var doc = editor.ownerDocument.defaultView;
	        var sel = doc.getSelection();
	        var range = sel.getRangeAt(0);
	
	        var tabNode 