| Server IP : 127.0.0.1 / Your IP : 192.168.99.1 Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9 System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64 User : Administrator ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /laragon/www/antrian/petugas/assets/vendors/js/ui/ |
Upload File : |
Prism.languages.treeview = {
"treeview-part": {
pattern: /(^|\n).+/,
inside: {
"entry-line": [
{
pattern: /\|-- |├── /,
alias: "line-h"
},
{
pattern: /\| |│ /,
alias: "line-v"
},
{
pattern: /`-- |└── /,
alias: "line-v-last"
},
{
pattern: / {4}/,
alias: "line-v-gap"
}
],
"entry-name": {
pattern: /.*\S.*/,
inside: {
// symlink
"operator": / -> /,
}
}
}
}
};
Prism.hooks.add('wrap', function(env) {
if (env.language === 'treeview') {
// Remove line breaks
if(env.type === 'treeview-part') {
env.content = env.content.replace(/\n/g,'')+'<br />';
}
if(env.type === 'entry-name') {
if(/(^|[^\\])\/\s*$/.test(env.content)) {
env.content = env.content.slice(0,-1);
// This is a folder
env.classes.push('dir');
} else {
if(/(^|[^\\])[=*|]\s*$/.test(env.content)) {
env.content = env.content.slice(0,-1);
}
var parts = env.content.toLowerCase().split('.');
while (parts.length > 1) {
parts.shift();
// Ex. 'foo.min.js' would become '<span class="token keyword ext-min-js ext-js">foo.min.js</span>'
env.classes.push('ext-' + parts.join('-'));
}
}
if(env.content.charAt(0)==='.') {
env.classes.push('dotfile');
}
}
}
});