source:
node_modules/prismjs/plugins/highlight-keywords/prism-highlight-keywords.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 214 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 1 | (function () { |
2 | ||
3 | if (typeof Prism === 'undefined') { | |
4 | return; | |
5 | } | |
6 | ||
7 | Prism.hooks.add('wrap', function (env) { | |
8 | if (env.type !== 'keyword') { | |
9 | return; | |
10 | } | |
11 | env.classes.push('keyword-' + env.content); | |
12 | }); | |
13 | ||
14 | }()); |
Note:
See TracBrowser
for help on using the repository browser.