silverstripe-framework/thirdparty/tinymce-advcode/js/codepress/languages/css.js
Ingo Schommer 678502e2c9 API CHANGE Moved tinymce-advcode plugin from jsparty/tinymce_advcode to sapphire/thirdparty/tinymce-advcode
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92500 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-21 02:29:43 +00:00

24 lines
672 B
JavaScript

/*
* 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 = []