~tennessee.team/www-ubuntu-us-tn/trunk

« back to all changes in this revision

Viewing changes to news/wp-includes/js/codepress/languages/css.js

  • Committer: Christopher Lunsford
  • Date: 2009-09-09 20:30:13 UTC
  • Revision ID: binarymutant@gmail.com-20090909203013-jureydmhbulqtl4c
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 = []