Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 216.73.216.105
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
ifk
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
vim /
vim81 /
autoload /
[ HOME SHELL ]
Name
Size
Permission
Action
dist
[ DIR ]
drwxr-xr-x
xml
[ DIR ]
drwxr-xr-x
README.txt
773
B
-rw-r--r--
RstFold.vim
1.86
KB
-rw-r--r--
ada.vim
22.04
KB
-rw-r--r--
adacomplete.vim
3.58
KB
-rw-r--r--
ccomplete.vim
17.44
KB
-rw-r--r--
clojurecomplete.vim
7.84
KB
-rw-r--r--
context.vim
5.33
KB
-rw-r--r--
contextcomplete.vim
656
B
-rw-r--r--
csscomplete.vim
42.23
KB
-rw-r--r--
decada.vim
2.93
KB
-rw-r--r--
getscript.vim
24.28
KB
-rw-r--r--
gnat.vim
5.21
KB
-rw-r--r--
gzip.vim
6.26
KB
-rw-r--r--
haskellcomplete.vim
103.18
KB
-rw-r--r--
htmlcomplete.vim
24.85
KB
-rw-r--r--
javascriptcomplete.vim
26.39
KB
-rw-r--r--
netrw.vim
519.73
KB
-rw-r--r--
netrwFileHandlers.vim
9.91
KB
-rw-r--r--
netrwSettings.vim
9.96
KB
-rw-r--r--
netrw_gitignore.vim
3.05
KB
-rw-r--r--
paste.vim
672
B
-rw-r--r--
phpcomplete.vim
345.82
KB
-rw-r--r--
python3complete.vim
21.07
KB
-rw-r--r--
pythoncomplete.vim
21.53
KB
-rw-r--r--
rubycomplete.vim
24.42
KB
-rw-r--r--
rust.vim
10.22
KB
-rw-r--r--
rustfmt.vim
2.92
KB
-rw-r--r--
spellfile.vim
6.09
KB
-rw-r--r--
sqlcomplete.vim
38.27
KB
-rw-r--r--
syntaxcomplete.vim
30.54
KB
-rw-r--r--
tar.vim
22.53
KB
-rw-r--r--
tohtml.vim
31.69
KB
-rw-r--r--
vimball.vim
23.76
KB
-rw-r--r--
xmlcomplete.vim
14.59
KB
-rw-r--r--
xmlformat.vim
3.25
KB
-rw-r--r--
zip.vim
14.3
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : xmlformat.vim
" Vim plugin for formatting XML " Last Change: Thu, 07 Dec 2018 " Version: 0.1 " Author: Christian Brabandt <cb@256bit.org> " Repository: https://github.com/chrisbra/vim-xml-ftplugin " License: VIM License " Documentation: see :h xmlformat.txt (TODO!) " --------------------------------------------------------------------- " Load Once: {{{1 if exists("g:loaded_xmlformat") || &cp finish endif let g:loaded_xmlformat = 1 let s:keepcpo = &cpo set cpo&vim " Main function: Format the input {{{1 func! xmlformat#Format() " only allow reformatting through the gq command " (e.g. Vim is in normal mode) if mode() != 'n' " do not fall back to internal formatting return 0 endif let sw = shiftwidth() let prev = prevnonblank(v:lnum-1) let s:indent = indent(prev)/sw let result = [] let lastitem = prev ? getline(prev) : '' let is_xml_decl = 0 " split on `<`, but don't split on very first opening < for item in split(join(getline(v:lnum, (v:lnum + v:count - 1))), '.\@<=[>]\zs') if s:EndTag(item) let s:indent = s:DecreaseIndent() call add(result, s:Indent(item)) elseif s:EmptyTag(lastitem) call add(result, s:Indent(item)) elseif s:StartTag(lastitem) && s:IsTag(item) let s:indent += 1 call add(result, s:Indent(item)) else if !s:IsTag(item) " Simply split on '<' let t=split(item, '.<\@=\zs') let s:indent+=1 call add(result, s:Indent(t[0])) let s:indent = s:DecreaseIndent() call add(result, s:Indent(t[1])) else call add(result, s:Indent(item)) endif endif let lastitem = item endfor if !empty(result) exe v:lnum. ",". (v:lnum + v:count - 1). 'd' call append(v:lnum - 1, result) " Might need to remove the last line, if it became empty because of the " append() call let last = v:lnum + len(result) if getline(last) is '' exe last. 'd' endif endif " do not run internal formatter! return 0 endfunc " Check if given tag is XML Declaration header {{{1 func! s:IsXMLDecl(tag) return a:tag =~? '^\s*<?xml\s\?\%(version="[^"]*"\)\?\s\?\%(encoding="[^"]*"\)\? ?>\s*$' endfunc " Return tag indented by current level {{{1 func! s:Indent(item) return repeat(' ', shiftwidth()*s:indent). s:Trim(a:item) endfu " Return item trimmed from leading whitespace {{{1 func! s:Trim(item) if exists('*trim') return trim(a:item) else return matchstr(a:item, '\S\+.*') endif endfunc " Check if tag is a new opening tag <tag> {{{1 func! s:StartTag(tag) let is_comment = s:IsComment(a:tag) return a:tag =~? '^\s*<[^/?]' && !is_comment endfunc func! s:IsComment(tag) return a:tag =~? '<!--' endfunc " Remove one level of indentation {{{1 func! s:DecreaseIndent() return (s:indent > 0 ? s:indent - 1 : 0) endfunc " Check if tag is a closing tag </tag> {{{1 func! s:EndTag(tag) return a:tag =~? '^\s*</' endfunc " Check that the tag is actually a tag and not {{{1 " something like "foobar</foobar>" func! s:IsTag(tag) return s:Trim(a:tag)[0] == '<' endfunc " Check if tag is empty <tag/> {{{1 func! s:EmptyTag(tag) return a:tag =~ '/>\s*$' endfunc " Restoration And Modelines: {{{1 let &cpo= s:keepcpo unlet s:keepcpo " Modeline {{{1 " vim: fdm=marker fdl=0 ts=2 et sw=0 sts=-1
Close