UNPKG

prismjs

Version:

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

18 lines (14 loc) 270 B
(function(){ if ( typeof self !== 'undefined' && !self.Prism || typeof global !== 'undefined' && !global.Prism ) { return; } Prism.hooks.add('wrap', function(env) { if (env.type !== "keyword") { return; } env.classes.push('keyword-' + env.content); }); })();