/opt/imh-python/lib/python3.9/site-packages/pygments/styles
NameSizeModeActions
__pycache__/-0755rm
abap.py7490644editdlrm
algol.py22620644editdlrm
algol_nu.py22830644editdlrm
arduino.py45570644editdlrm
autumn.py21950644editdlrm
borland.py16110644editdlrm
bw.py14060644editdlrm
coffee.py23080644editdlrm
colorful.py28320644editdlrm
default.py25880644editdlrm
dracula.py21820644editdlrm
emacs.py25350644editdlrm
friendly.py26040644editdlrm
friendly_grayscale.py28280644editdlrm
fruity.py13240644editdlrm
gh_dark.py35900644editdlrm
gruvbox.py33870644editdlrm
igor.py7370644editdlrm
inkpot.py24040644editdlrm
lightbulb.py31720644editdlrm
lilypond.py20660644editdlrm
lovelace.py31780644editdlrm
manni.py24430644editdlrm
material.py42010644editdlrm
monokai.py51840644editdlrm
murphy.py28050644editdlrm
native.py20430644editdlrm
nord.py53910644editdlrm
onedark.py17190644editdlrm
paraiso_dark.py56620644editdlrm
paraiso_light.py56680644editdlrm
pastie.py25250644editdlrm
perldoc.py22300644editdlrm
rainbow_dash.py23900644editdlrm
rrt.py10060644editdlrm
sas.py14400644editdlrm
solarized.py42470644editdlrm
staroffice.py8310644editdlrm
stata_dark.py12570644editdlrm
stata_light.py12890644editdlrm
tango.py71370644editdlrm
trac.py19810644editdlrm
vim.py20190644editdlrm
vs.py11300644editdlrm
xcode.py15040644editdlrm
zenburn.py22030644editdlrm
_mapping.py33120644editdlrm
__init__.py20060644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/pygments/styles/__init__.py (2006B)
""" pygments.styles ~~~~~~~~~~~~~~~ Contains built-in styles. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.plugin import find_plugin_styles from pygments.util import ClassNotFound from pygments.styles._mapping import STYLES #: A dictionary of built-in styles, mapping style names to #: ``'submodule::classname'`` strings. #: This list is deprecated. Use `pygments.styles.STYLES` instead STYLE_MAP = {v[1]: v[0].split('.')[-1] + '::' + k for k, v in STYLES.items()} #: Internal reverse mapping to make `get_style_by_name` more efficient _STYLE_NAME_TO_MODULE_MAP = {v[1]: (v[0], k) for k, v in STYLES.items()} def get_style_by_name(name): """ Return a style class by its short name. The names of the builtin styles are listed in :data:`pygments.styles.STYLE_MAP`. Will raise :exc:`pygments.util.ClassNotFound` if no style of that name is found. """ if name in _STYLE_NAME_TO_MODULE_MAP: mod, cls = _STYLE_NAME_TO_MODULE_MAP[name] builtin = "yes" else: for found_name, style in find_plugin_styles(): if name == found_name: return style # perhaps it got dropped into our styles package builtin = "" mod = 'pygments.styles.' + name cls = name.title() + "Style" try: mod = __import__(mod, None, None, [cls]) except ImportError: raise ClassNotFound(f"Could not find style module {mod!r}" + (builtin and ", though it should be builtin") + ".") try: return getattr(mod, cls) except AttributeError: raise ClassNotFound(f"Could not find style class {cls!r} in style module.") def get_all_styles(): """Return a generator for all styles by name, both builtin and plugin.""" for v in STYLES.values(): yield v[1] for name, _ in find_plugin_styles(): yield name