Current Path: > > opt > hc_python > lib64 > python3.12 > site-packages > pip > _vendor > pygments
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
filters | Directory | - | - | |
formatters | Directory | - | - | |
lexers | Directory | - | - | |
styles | Directory | - | - | |
__init__.py | File | 2983 bytes | May 23 2025 10:34:25. | |
__main__.py | File | 353 bytes | May 23 2025 10:34:25. | |
console.py | File | 1718 bytes | May 23 2025 10:34:25. | |
filter.py | File | 1910 bytes | May 23 2025 10:34:25. | |
formatter.py | File | 4390 bytes | May 23 2025 10:34:25. | |
lexer.py | File | 35349 bytes | May 23 2025 10:34:25. | |
modeline.py | File | 1005 bytes | May 23 2025 10:34:25. | |
plugin.py | File | 1891 bytes | May 23 2025 10:34:25. | |
regexopt.py | File | 3072 bytes | May 23 2025 10:34:25. | |
scanner.py | File | 3092 bytes | May 23 2025 10:34:25. | |
sphinxext.py | File | 7981 bytes | May 23 2025 10:34:25. | |
style.py | File | 6420 bytes | May 23 2025 10:34:25. | |
token.py | File | 6226 bytes | May 23 2025 10:34:25. | |
unistring.py | File | 63208 bytes | May 23 2025 10:34:25. | |
util.py | File | 10031 bytes | May 23 2025 10:34:25. |
""" pygments.console ~~~~~~~~~~~~~~~~ Format colored console output. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ esc = "\x1b[" codes = {} codes[""] = "" codes["reset"] = esc + "39;49;00m" codes["bold"] = esc + "01m" codes["faint"] = esc + "02m" codes["standout"] = esc + "03m" codes["underline"] = esc + "04m" codes["blink"] = esc + "05m" codes["overline"] = esc + "06m" dark_colors = ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "gray"] light_colors = ["brightblack", "brightred", "brightgreen", "brightyellow", "brightblue", "brightmagenta", "brightcyan", "white"] x = 30 for dark, light in zip(dark_colors, light_colors): codes[dark] = esc + "%im" % x codes[light] = esc + "%im" % (60 + x) x += 1 del dark, light, x codes["white"] = codes["bold"] def reset_color(): return codes["reset"] def colorize(color_key, text): return codes[color_key] + text + codes["reset"] def ansiformat(attr, text): """ Format ``text`` with a color and/or some attributes:: color normal color *color* bold color _color_ underlined color +color+ blinking color """ result = [] if attr[:1] == attr[-1:] == '+': result.append(codes['blink']) attr = attr[1:-1] if attr[:1] == attr[-1:] == '*': result.append(codes['bold']) attr = attr[1:-1] if attr[:1] == attr[-1:] == '_': result.append(codes['underline']) attr = attr[1:-1] result.append(codes[attr]) result.append(text) result.append(codes['reset']) return ''.join(result)
SILENT KILLER Tool