|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/wordpress/wp-includes/js/codepress/languages/ |
Upload File : |
/*
* CodePress regular expressions for CSS syntax highlighting
*/
// CSS
Language.syntax = [
{ input : /(.*?){(.*?)}/g,output : '<b>$1</b>{<u>$2</u>}' }, // tags, ids, classes, values
{ input : /([\w-]*?):([^\/])/g,output : '<a>$1</a>:$2' }, // keys
{ input : /\((.*?)\)/g,output : '(<s>$1</s>)' }, // parameters
{ input : /\/\*(.*?)\*\//g,output : '<i>/*$1*/</i>'} // comments
]
Language.snippets = []
Language.complete = [
{ input : '\'',output : '\'$0\'' },
{ input : '"', output : '"$0"' },
{ input : '(', output : '\($0\)' },
{ input : '[', output : '\[$0\]' },
{ input : '{', output : '{\n\t$0\n}' }
]
Language.shortcuts = []