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.style ~~~~~~~~~~~~~~ Basic style object. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.token import Token, STANDARD_TYPES from pygments.util import add_metaclass class StyleMeta(type): def __new__(mcs, name, bases, dct): obj = type.__new__(mcs, name, bases, dct) for token in STANDARD_TYPES: if token not in obj.styles: obj.styles[token] = '' def colorformat(text): if text[0:1] == '#': col = text[1:] if len(col) == 6: return col elif len(col) == 3: return col[0]*2 + col[1]*2 + col[2]*2 elif text == '': return '' assert False, "wrong color format %r" % text _styles = obj._styles = {} for ttype in obj.styles: for token in ttype.split(): if token in _styles: continue ndef = _styles.get(token.parent, None) styledefs = obj.styles.get(token, '').split() if not ndef or token is None: ndef = ['', 0, 0, 0, '', '', 0, 0, 0] elif 'noinherit' in styledefs and token is not Token: ndef = _styles[Token][:] else: ndef = ndef[:] _styles[token] = ndef for styledef in obj.styles.get(token, '').split(): if styledef == 'noinherit': pass elif styledef == 'bold': ndef[1] = 1 elif styledef == 'nobold': ndef[1] = 0 elif styledef == 'italic': ndef[2] = 1 elif styledef == 'noitalic': ndef[2] = 0 elif styledef == 'underline': ndef[3] = 1 elif styledef == 'nounderline': ndef[3] = 0 elif styledef[:3] == 'bg:': ndef[4] = colorformat(styledef[3:]) elif styledef[:7] == 'border:': ndef[5] = colorformat(styledef[7:]) elif styledef == 'roman': ndef[6] = 1 elif styledef == 'sans': ndef[7] = 1 elif styledef == 'mono': ndef[8] = 1 else: ndef[0] = colorformat(styledef) return obj def style_for_token(cls, token): t = cls._styles[token] return { 'color': t[0] or None, 'bold': bool(t[1]), 'italic': bool(t[2]), 'underline': bool(t[3]), 'bgcolor': t[4] or None, 'border': t[5] or None, 'roman': bool(t[6]) or None, 'sans': bool(t[7]) or None, 'mono': bool(t[8]) or None, } def list_styles(cls): return list(cls) def styles_token(cls, ttype): return ttype in cls._styles def __iter__(cls): for token in cls._styles: yield token, cls.style_for_token(token) def __len__(cls): return len(cls._styles) @add_metaclass(StyleMeta) class Style(object): #: overall background color (``None`` means transparent) background_color = '#ffffff' #: highlight background color highlight_color = '#ffffcc' #: Style definitions for individual token types. styles = {}