Blame view

bower_components/prism/plugins/highlight-keywords/prism-highlight-keywords.js 270 Bytes
73bcce88   luigser   COMPONENTS
1
2
  (function(){
  
eb240478   Luigi Serra   public room cards...
3
4
5
6
  if (
  	typeof self !== 'undefined' && !self.Prism ||
  	typeof global !== 'undefined' && !global.Prism
  ) {
73bcce88   luigser   COMPONENTS
7
8
9
10
11
12
13
14
15
16
17
  	return;
  }
  
  Prism.hooks.add('wrap', function(env) {
  	if (env.type !== "keyword") {
  		return;
  	}
  	env.classes.push('keyword-' + env.content);
  });
  
  })();