2025.12.31 02:49:47 (cachyos.cmoser.eu)
This commit is contained in:
38
.static/tinywiki/js/bbcode.js
Normal file
38
.static/tinywiki/js/bbcode.js
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
Language: bbcode
|
||||
Author: Paul Reid <paul@reid-family.org>
|
||||
Description: highlightjs language definition for bbcode files
|
||||
Category: config
|
||||
*/
|
||||
|
||||
hljs.registerLanguage('bbcode', function (hljs) {
|
||||
return {
|
||||
case_insensitive: true,
|
||||
contains: [
|
||||
{
|
||||
className: 'name',
|
||||
begin: /\[[^=\s\]]*/
|
||||
},
|
||||
{
|
||||
className: 'name',
|
||||
begin: ']'
|
||||
},
|
||||
{
|
||||
className: 'attribute',
|
||||
begin: /(?<==)[^\]\s]*/
|
||||
},
|
||||
{
|
||||
className: 'attr',
|
||||
begin: /(?<=\[[^\]]* )[^\s=\]]*/
|
||||
},
|
||||
{
|
||||
className: 'string',
|
||||
begin: /[=;:8]'?\-?[\)\(3SPDO>@$|/]/
|
||||
},
|
||||
{
|
||||
className: 'string',
|
||||
begin: /:[\w]*:/
|
||||
}
|
||||
]
|
||||
};
|
||||
});
|
||||
1244
.static/tinywiki/js/highlight.min.js
vendored
Normal file
1244
.static/tinywiki/js/highlight.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
.static/tinywiki/js/htmx.min.js
vendored
Normal file
1
.static/tinywiki/js/htmx.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user