ars });

        if (range) {
            range.collapse(false);
            selection.removeAllRanges();
            selection.addRange(range);
        }
    }
	};	
	function colorCode(){
	
	var ed = document.getElementById("code_view");



		var previousPos = getCaretPos ( ed  );
	//Doing some stuff in the contenteditable div...
		var code = escapeHtmlChar(ed.innerText);
	    code = renderColor(code);

		ed.innerHTML = "<pre id='code_color'>" + code + "</pre>";

		renderColor(code);

	
		//- line numbers
