prism-highlight-keywords.js 270 B

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