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 ~~~~~~~~ Pygments is a syntax highlighting package written in Python. It is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code. Highlights are: * a wide range of common languages and markup formats is supported * special attention is paid to details, increasing quality by a fair amount * support for new languages and formats are added easily * a number of output formats, presently HTML, LaTeX, RTF, SVG, all image formats that PIL supports, and ANSI sequences * it is usable as a command-line tool and as a library * ... and it highlights even Brainfuck! The `Pygments tip`_ is installable with ``easy_install Pygments==dev``. .. _Pygments tip: http://bitbucket.org/birkenfeld/pygments-main/get/tip.zip#egg=Pygments-dev :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ __version__ = '2.0.2' __docformat__ = 'restructuredtext' __all__ = ['lex', 'format', 'highlight'] import sys from pygments.util import StringIO, BytesIO def lex(code, lexer): """ Lex ``code`` with ``lexer`` and return an iterable of tokens. """ try: return lexer.get_tokens(code) except TypeError as err: if isinstance(err.args[0], str) and \ ('unbound method get_tokens' in err.args[0] or 'missing 1 required positional argument' in err.args[0]): raise TypeError('lex() argument must be a lexer instance, ' 'not a class') raise def format(tokens, formatter, outfile=None): """ Format a tokenlist ``tokens`` with the formatter ``formatter``. If ``outfile`` is given and a valid file object (an object with a ``write`` method), the result will be written to it, otherwise it is returned as a string. """ try: if not outfile: realoutfile = getattr(formatter, 'encoding', None) and BytesIO() or StringIO() formatter.format(tokens, realoutfile) return realoutfile.getvalue() else: formatter.format(tokens, outfile) except TypeError as err: if isinstance(err.args[0], str) and \ ('unbound method format' in err.args[0] or 'missing 1 required positional argument' in err.args[0]): raise TypeError('format() argument must be a formatter instance, ' 'not a class') raise def highlight(code, lexer, formatter, outfile=None): """ Lex ``code`` with ``lexer`` and format it with the formatter ``formatter``. If ``outfile`` is given and a valid file object (an object with a ``write`` method), the result will be written to it, otherwise it is returned as a string. """ return format(lex(code, lexer), formatter, outfile) if __name__ == '__main__': # pragma: no cover from pygments.cmdline import main sys.exit(main(sys.argv))