UNPKG

prismjs

Version:

Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet.

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