css.js 649 B

1234567891011121314151617181920212223
  1. /*
  2. * CodePress regular expressions for CSS syntax highlighting
  3. */
  4. // CSS
  5. Language.syntax = [
  6. { input : /(.*?){(.*?)}/g,output : '<b>$1</b>{<u>$2</u>}' }, // tags, ids, classes, values
  7. { input : /([\w-]*?):([^\/])/g,output : '<a>$1</a>:$2' }, // keys
  8. { input : /\((.*?)\)/g,output : '(<s>$1</s>)' }, // parameters
  9. { input : /\/\*(.*?)\*\//g,output : '<i>/*$1*/</i>'} // comments
  10. ]
  11. Language.snippets = []
  12. Language.complete = [
  13. { input : '\'',output : '\'$0\'' },
  14. { input : '"', output : '"$0"' },
  15. { input : '(', output : '\($0\)' },
  16. { input : '[', output : '\[$0\]' },
  17. { input : '{', output : '{\n\t$0\n}' }
  18. ]
  19. Language.shortcuts = []