/*
* CodePress regular expressions for HTML syntax highlighting
*/
// HTML
Language.syntax = [
{ input : /<!(DOCTYPE)(.*?)>/g, output: '<!$1$2>'},
{ input : /(<style.*?>)(.*?)(<\/style>)/g, output : '$1$2$3' }, // style tags
{ input : /(<script.*?>)(.*?)(<\/script>)/g, output : '$1$2$3' }, // script tags
{ input : /<([^!]*?)>/g, output : '<$1>' }, // all tags
{ input : /([a-zA-Z]+)=(".*?")/g, output : '$1=$2' }, // atributes double quote
{ input : /=('.*?')/g, output : '=$1' }, // atributes single quote
{ input : /(<!--.*?-->.)/g, output : '$1' }, // comments
{ input : /([^:]|^)\/\/(.*?)(
//$2$3' }, // comments //
{ input : /\b(alert|window|document|break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, output : '$1' }, // script reserved words
{ input: /(\{\$[a-zA-Z0-9_\[\]'"]+)\->([a-zA-Z0-9_\-\$\[\]'"]+\}?)/g, output: '$1->$2'}, // class based variables
{ input: /(\{?\$[a-zA-Z0-9_\-\$\[\]'"]+\}?)/g, output: '$1'}, // variables in templates
{ input: /&(amp|gt|lt|raquo|laquo);/g, output: '&$1;'}
]
Language.snippets = [
{ input : 'aref', output : '' },
{ input : 'h1', output : '
$0
' }, { input : 'script', output : '' }, { input : 'scriptsrc', output : '' }, { input : 'span', output : '$0' }, { input : 'table', output : '