UNPKG
blear.ui.code-highlight
Version:
latest (2.3.2)
2.3.2
2.3.1
2.3.0
2.2.1
2.2.0
2.1.4
2.1.3
2.1.2
2.1.1
代码高亮,基于 prism@1.17.1
github.com/blearjs/blear.ui.code-highlight
blearjs/blear.ui.code-highlight
blear.ui.code-highlight
/
src
/
prismjs
/
components
/
prism-ini.js
12 lines
(11 loc)
•
212 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
Prism
.
languages
.
ini
= {
'comment'
:
/^[ \t]*[;#].*$/m
,
'selector'
:
/^[ \t]*\[.*?\]/m
,
'constant'
:
/^[ \t]*[^\s=]+?(?=[ \t]*=)/m
,
'attr-value'
: {
pattern
:
/=.*/
,
inside
: {
'punctuation'
:
/^[=]/
} } };