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