UNPKG

270 BJavaScriptView Raw
1(function(){
2
3if (
4 typeof self !== 'undefined' && !self.Prism ||
5 typeof global !== 'undefined' && !global.Prism
6) {
7 return;
8}
9
10Prism.hooks.add('wrap', function(env) {
11 if (env.type !== "keyword") {
12 return;
13 }
14 env.classes.push('keyword-' + env.content);
15});
16
17})();