CoreFiles by mySites.guru
css.js23 lines, 649 bytes, from wordpress-2.8.zip
Raw History Compare with 2.7.1
md5
aa387749d0225b801966586cb3440feb
sha1
d8878e88f00ab8d82428ad9d6d56040c006d27f0
sha256
0dc9450b8119dfaadc0da291a70330bc1f215ce16abea406930db3a15564bbc5
/*
 * CodePress regular expressions for CSS syntax highlighting
 */

// CSS
Language.syntax = [
	{ input : /(.*?){(.*?)}/g,output : '<b>$1</b>{<u>$2</u>}' }, // tags, ids, classes, values
	{ input : /([\w-]*?):([^\/])/g,output : '<a>$1</a>:$2' }, // keys
	{ input : /\((.*?)\)/g,output : '(<s>$1</s>)' }, // parameters
	{ input : /\/\*(.*?)\*\//g,output : '<i>/*$1*/</i>'} // comments
]

Language.snippets = []

Language.complete = [
	{ input : '\'',output : '\'$0\'' },
	{ input : '"', output : '"$0"' },
	{ input : '(', output : '\($0\)' },
	{ input : '[', output : '\[$0\]' },
	{ input : '{', output : '{\n\t$0\n}' }		
]

Language.shortcuts = []

The same content is in 25 releases, WordPress 2.8-beta1 to 3.0-beta2. See them all, or every version of this file.