mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
搭建框架
This commit is contained in:
29
static/highlight/languages/csp.js
Normal file
29
static/highlight/languages/csp.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
Language: CSP
|
||||
Description: Content Security Policy definition highlighting
|
||||
Author: Taras <oxdef@oxdef.info>
|
||||
|
||||
vim: ts=2 sw=2 st=2
|
||||
*/
|
||||
|
||||
function(hljs) {
|
||||
return {
|
||||
case_insensitive: false,
|
||||
lexemes: '[a-zA-Z][a-zA-Z0-9_-]*',
|
||||
keywords: {
|
||||
keyword: 'base-uri child-src connect-src default-src font-src form-action' +
|
||||
' frame-ancestors frame-src img-src media-src object-src plugin-types' +
|
||||
' report-uri sandbox script-src style-src',
|
||||
},
|
||||
contains: [
|
||||
{
|
||||
className: 'string',
|
||||
begin: "'", end: "'"
|
||||
},
|
||||
{
|
||||
className: 'attribute',
|
||||
begin: '^Content', end: ':', excludeEnd: true,
|
||||
},
|
||||
]
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user