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