136
|
1 |
/* |
|
2 |
* CodePress regular expressions for CSS syntax highlighting |
|
3 |
*/ |
|
4 |
|
|
5 |
// CSS |
|
6 |
Language.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 |
|
|
13 |
Language.snippets = [] |
|
14 |
|
|
15 |
Language.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 |
|
|
23 |
Language.shortcuts = [] |