15 lines
214 B
JavaScript
15 lines
214 B
JavaScript
|
(function () {
|
||
|
|
||
|
if (typeof Prism === 'undefined') {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
Prism.hooks.add('wrap', function (env) {
|
||
|
if (env.type !== 'keyword') {
|
||
|
return;
|
||
|
}
|
||
|
env.classes.push('keyword-' + env.content);
|
||
|
});
|
||
|
|
||
|
}());
|