Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.216.32
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
pygments /
Delete
Unzip
Name
Size
Permission
Date
Action
filters
[ DIR ]
drwxr-xr-x
2017-04-04 16:39
formatters
[ DIR ]
drwxr-xr-x
2017-04-04 16:39
lexers
[ DIR ]
drwxr-xr-x
2017-04-04 16:39
styles
[ DIR ]
drwxr-xr-x
2017-04-04 16:39
__init__.py
3.04
KB
-rw-r--r--
2015-01-20 07:56
__init__.pyc
3.42
KB
-rw-r--r--
2016-08-02 10:51
__init__.pyo
3.42
KB
-rw-r--r--
2016-08-02 10:51
cmdline.py
16.26
KB
-rw-r--r--
2015-01-20 07:56
cmdline.pyc
12.55
KB
-rw-r--r--
2016-08-02 10:51
cmdline.pyo
12.55
KB
-rw-r--r--
2016-08-02 10:51
console.py
1.81
KB
-rw-r--r--
2014-11-10 20:17
console.pyc
2.27
KB
-rw-r--r--
2016-08-02 10:51
console.pyo
2.27
KB
-rw-r--r--
2016-08-02 10:51
filter.py
2.02
KB
-rw-r--r--
2014-11-10 20:17
filter.pyc
3.1
KB
-rw-r--r--
2016-08-02 10:51
filter.pyo
3.1
KB
-rw-r--r--
2016-08-02 10:51
formatter.py
2.88
KB
-rw-r--r--
2014-11-10 20:17
formatter.pyc
3.35
KB
-rw-r--r--
2016-08-02 10:51
formatter.pyo
3.35
KB
-rw-r--r--
2016-08-02 10:51
lexer.py
30.12
KB
-rw-r--r--
2014-11-10 20:17
lexer.pyc
28.34
KB
-rw-r--r--
2016-08-02 10:51
lexer.pyo
27.58
KB
-rw-r--r--
2016-08-02 10:51
modeline.py
958
B
-rw-r--r--
2014-11-10 20:17
modeline.pyc
1.3
KB
-rw-r--r--
2016-08-02 10:51
modeline.pyo
1.3
KB
-rw-r--r--
2016-08-02 10:51
plugin.py
1.82
KB
-rw-r--r--
2014-11-10 20:17
plugin.pyc
2.3
KB
-rw-r--r--
2016-08-02 10:51
plugin.pyo
2.3
KB
-rw-r--r--
2016-08-02 10:51
regexopt.py
3
KB
-rw-r--r--
2014-11-10 20:17
regexopt.pyc
3.14
KB
-rw-r--r--
2016-08-02 10:51
regexopt.pyo
3.14
KB
-rw-r--r--
2016-08-02 10:51
scanner.py
3.04
KB
-rw-r--r--
2014-11-10 20:17
scanner.pyc
4.07
KB
-rw-r--r--
2016-08-02 10:51
scanner.pyo
4.07
KB
-rw-r--r--
2016-08-02 10:51
sphinxext.py
4.43
KB
-rw-r--r--
2015-01-20 07:56
sphinxext.pyc
5.39
KB
-rw-r--r--
2016-08-02 10:51
sphinxext.pyo
5.39
KB
-rw-r--r--
2016-08-02 10:51
style.py
3.69
KB
-rw-r--r--
2014-11-10 20:17
style.pyc
3.83
KB
-rw-r--r--
2016-08-02 10:51
style.pyo
3.76
KB
-rw-r--r--
2016-08-02 10:51
token.py
5.64
KB
-rw-r--r--
2014-11-10 20:17
token.pyc
5.04
KB
-rw-r--r--
2016-08-02 10:51
token.pyo
5.04
KB
-rw-r--r--
2016-08-02 10:51
unistring.py
49.95
KB
-rw-r--r--
2014-11-10 20:17
unistring.pyc
26.58
KB
-rw-r--r--
2016-08-02 10:51
unistring.pyo
26.58
KB
-rw-r--r--
2016-08-02 10:51
util.py
11.51
KB
-rw-r--r--
2015-01-20 07:56
util.pyc
12.59
KB
-rw-r--r--
2016-08-02 10:51
util.pyo
12.59
KB
-rw-r--r--
2016-08-02 10:51
Save
Rename
# -*- coding: utf-8 -*- """ pygments.sphinxext ~~~~~~~~~~~~~~~~~~ Sphinx extension to generate automatic documentation of lexers, formatters and filters. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import print_function import sys from docutils import nodes from docutils.statemachine import ViewList from sphinx.util.compat import Directive from sphinx.util.nodes import nested_parse_with_titles MODULEDOC = ''' .. module:: %s %s %s ''' LEXERDOC = ''' .. class:: %s :Short names: %s :Filenames: %s :MIME types: %s %s ''' FMTERDOC = ''' .. class:: %s :Short names: %s :Filenames: %s %s ''' FILTERDOC = ''' .. class:: %s :Name: %s %s ''' class PygmentsDoc(Directive): """ A directive to collect all lexers/formatters/filters and generate autoclass directives for them. """ has_content = False required_arguments = 1 optional_arguments = 0 final_argument_whitespace = False option_spec = {} def run(self): self.filenames = set() if self.arguments[0] == 'lexers': out = self.document_lexers() elif self.arguments[0] == 'formatters': out = self.document_formatters() elif self.arguments[0] == 'filters': out = self.document_filters() else: raise Exception('invalid argument for "pygmentsdoc" directive') node = nodes.compound() vl = ViewList(out.split('\n'), source='') nested_parse_with_titles(self.state, vl, node) for fn in self.filenames: self.state.document.settings.record_dependencies.add(fn) return node.children def document_lexers(self): from pygments.lexers._mapping import LEXERS out = [] modules = {} moduledocstrings = {} for classname, data in sorted(LEXERS.items(), key=lambda x: x[0]): module = data[0] mod = __import__(module, None, None, [classname]) self.filenames.add(mod.__file__) cls = getattr(mod, classname) if not cls.__doc__: print("Warning: %s does not have a docstring." % classname) docstring = cls.__doc__ if isinstance(docstring, bytes): docstring = docstring.decode('utf8') modules.setdefault(module, []).append(( classname, ', '.join(data[2]) or 'None', ', '.join(data[3]).replace('*', '\\*').replace('_', '\\') or 'None', ', '.join(data[4]) or 'None', docstring)) if module not in moduledocstrings: moddoc = mod.__doc__ if isinstance(moddoc, bytes): moddoc = moddoc.decode('utf8') moduledocstrings[module] = moddoc for module, lexers in sorted(modules.items(), key=lambda x: x[0]): heading = moduledocstrings[module].splitlines()[4].strip().rstrip('.') out.append(MODULEDOC % (module, heading, '-'*len(heading))) for data in lexers: out.append(LEXERDOC % data) return ''.join(out) def document_formatters(self): from pygments.formatters import FORMATTERS out = [] for classname, data in sorted(FORMATTERS.items(), key=lambda x: x[0]): module = data[0] mod = __import__(module, None, None, [classname]) self.filenames.add(mod.__file__) cls = getattr(mod, classname) docstring = cls.__doc__ if isinstance(docstring, bytes): docstring = docstring.decode('utf8') heading = cls.__name__ out.append(FMTERDOC % (heading, ', '.join(data[1]) or 'None', ', '.join(data[2]).replace('*', '\\*') or 'None', docstring)) return ''.join(out) def document_filters(self): from pygments.filters import FILTERS out = [] for name, cls in FILTERS.items(): self.filenames.add(sys.modules[cls.__module__].__file__) docstring = cls.__doc__ if isinstance(docstring, bytes): docstring = docstring.decode('utf8') out.append(FILTERDOC % (cls.__name__, name, docstring)) return ''.join(out) def setup(app): app.add_directive('pygmentsdoc', PygmentsDoc)