☰
Debian Codegraph
@
1.30.0+dfsg+~1.26.6-1
/
/
plugins
/
highlight-keywords
/
prism-highlight-keywords.js
☽
☼
plugins/highlight-keywords/prism-highlight-keywords.js
code
plain
raw
symbols
SCIP
Expat
2018 Lea Verou
debian/copyright
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
}());