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