silverstripe-framework/thirdparty/tinymce-advcode/js/codepress/languages/css.js
Ingo Schommer b734d702d3 MINOR Moved jsparty/tinymce_advcode to sapphire/thirdparty/tinymce-advcode
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@93562 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 14:17:49 +13: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 = []