Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
pygments /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
filters
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
formatters
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
lexers
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
styles
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
__init__.py
2.91
KB
-rw-r--r--
2023-01-01 08:34
__main__.py
348
B
-rw-r--r--
2023-01-01 08:34
cmdline.py
22.98
KB
-rw-r--r--
2023-01-01 08:34
console.py
1.66
KB
-rw-r--r--
2023-01-01 08:34
filter.py
1.89
KB
-rw-r--r--
2023-01-01 08:34
formatter.py
2.83
KB
-rw-r--r--
2023-01-01 08:34
lexer.py
31.24
KB
-rw-r--r--
2023-01-01 08:34
modeline.py
986
B
-rw-r--r--
2023-01-01 08:34
plugin.py
2.52
KB
-rw-r--r--
2023-01-01 08:34
regexopt.py
3
KB
-rw-r--r--
2023-01-01 08:34
scanner.py
3.02
KB
-rw-r--r--
2023-01-01 08:34
sphinxext.py
6.66
KB
-rw-r--r--
2023-01-01 08:34
style.py
6.1
KB
-rw-r--r--
2023-01-01 08:34
token.py
6.04
KB
-rw-r--r--
2023-01-01 08:34
unistring.py
61.71
KB
-rw-r--r--
2023-01-01 08:34
util.py
8.9
KB
-rw-r--r--
2023-01-01 08:34
Save
Rename
""" pygments.modeline ~~~~~~~~~~~~~~~~~ A simple modeline parser (based on pymodeline). :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re __all__ = ['get_filetype_from_buffer'] modeline_re = re.compile(r''' (?: vi | vim | ex ) (?: [<=>]? \d* )? : .* (?: ft | filetype | syn | syntax ) = ( [^:\s]+ ) ''', re.VERBOSE) def get_filetype_from_line(l): m = modeline_re.search(l) if m: return m.group(1) def get_filetype_from_buffer(buf, max_lines=5): """ Scan the buffer for modelines and return filetype if one is found. """ lines = buf.splitlines() for l in lines[-1:-max_lines-1:-1]: ret = get_filetype_from_line(l) if ret: return ret for i in range(max_lines, -1, -1): if i < len(lines): ret = get_filetype_from_line(lines[i]) if ret: return ret return None