source: trunk/www.guidonia.net/wp/wp-includes/js/codepress/languages/css.js@ 44

Last change on this file since 44 was 44, checked in by luciano, 15 years ago
File size: 649 bytes
Line 
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 = []
Note: See TracBrowser for help on using the repository browser.