Blame view

bower_components/prism/plugins/highlight-keywords/prism-highlight-keywords.js 185 Bytes
73bcce88   luigser   COMPONENTS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  (function(){
  
  if (!self.Prism) {
  	return;
  }
  
  Prism.hooks.add('wrap', function(env) {
  	if (env.type !== "keyword") {
  		return;
  	}
  	env.classes.push('keyword-' + env.content);
  });
  
  })();