ascript">
function _replace(input, index){
	switch(input){
		case "<": return "&lt;";
		case ">": return "&gt;";
		case "&": return "&amp;";
	}
	return null;
}
function escapeHtmlChar(input){
	return input.replace(/[<>&]/g, _replace);
}
function renderColor(code){
	code = replaceColor(code, /"([^\\"]|\\")*"/g, 0xE6DB74);  //strings
	
	code = replaceColor(code, /(setup|loop|_loop|_delay)(?=\(\))/g, 0x7FE22A);
	
	code = replaceColor(code, /(for|if)(?=\()/g, 0xF92672); //- puede ir al lado de parentesis	
	code