CodeHighlighter.addStyle("sql",{
	comment : {
		exp: 	/\/\/[^\n]+/
	},
	
	bracket : {
		exp  : /\(|\)/
	},
	string : {
		exp  : /'[^']*'"/
	},
	method : {
		exp  : /\b(count|avg|min|max)\b/
	},
	keyword : {
		exp  : /\b(and|as|create|delete|distinct|from|select|update|insert|where|or|begin|end|go|commit|rollback|values|view|function|stored procedure|top)\b/
	}
}, true);

CodeHighlighter.addStyle("ruby",{
	comment : {
		exp: 	/#[^\n]+/
	},
	
	constant : {
		exp:	/[A-Z]\w+/
	},	
	bracket : {
		exp  : /\(|\)/
	},
	rails    : {
		exp  : /\b(before_save)\b/
	},
	string : {
		exp  : /'[^']*'|"[^"]*"/
	},
	symbol : {
		exp  : /:.+\b/
	},
	keyword : {
		exp  : /\b(do|end|self|class|def|if|module|yield|then|else|for|until|unless|while|elsif|case|when|break|retry|redo|rescue|require|raise|false|true)\b/
	}
});

CodeHighlighter.addStyle("javascript",{
	comment : {
		exp  : /(\/\/[^\n]*\n)|(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)/
	},
	bracket : {
		exp  : /\(|\)/
	},
	string : {
		exp  : /'[^']*'|"[^"]*"/
	},
	keyword : {
		exp  : /\b(arguments|break|case|continue|default|delete|do|else|false|for|function|if|in|instanceof|new|null|return|switch|this|true|typeof|var|void|while|with)\b/
	},
	global : {
		exp  : /\b(toString|valueOf|window|element|prototype|constructor|document|escape|unescape|parseInt|parseFloat|setTimeout|clearTimeout|setInterval|clearInterval|NaN|isNaN|Infinity)\b/
	}
});