1/* 2 * CodePress regular expressions for CSS syntax highlighting 3 */ 4 5// CSS 6Language.syntax = [ 7 { input : /(.*?){(.*?)}/g,output : '<b>$1</b>{<u>$2</u>}' }, // tags, ids, classes, values 8 { input : /([\w-]*?):([^\/])/g,output : '<a>$1</a>:$2' }, // keys 9 { input : /\((.*?)\)/g,output : '(<s>$1</s>)' }, // parameters 10 { input : /\/\*(.*?)\*\//g,output : '<i>/*$1*/</i>'} // comments 11] 12 13Language.snippets = [] 14 15Language.complete = [ 16 { input : '\'',output : '\'$0\'' }, 17 { input : '"', output : '"$0"' }, 18 { input : '(', output : '\($0\)' }, 19 { input : '[', output : '\[$0\]' }, 20 { input : '{', output : '{\n\t$0\n}' } 21] 22 23Language.shortcuts = [] 24