Hackfut Security File Manager
Current Path:
/usr/lib/python2.6/site-packages/pygments/styles
usr
/
lib
/
python2.6
/
site-packages
/
pygments
/
styles
/
📁
..
📄
__init__.py
(1.96 KB)
📄
__init__.pyc
(2.3 KB)
📄
__init__.pyo
(2.3 KB)
📄
autumn.py
(2.09 KB)
📄
autumn.pyc
(2.03 KB)
📄
autumn.pyo
(2.03 KB)
📄
borland.py
(1.53 KB)
📄
borland.pyc
(1.73 KB)
📄
borland.pyo
(1.73 KB)
📄
bw.py
(1.32 KB)
📄
bw.pyc
(1.39 KB)
📄
bw.pyo
(1.39 KB)
📄
colorful.py
(2.71 KB)
📄
colorful.pyc
(2.59 KB)
📄
colorful.pyo
(2.59 KB)
📄
default.py
(2.47 KB)
📄
default.pyc
(2.29 KB)
📄
default.pyo
(2.29 KB)
📄
emacs.py
(2.43 KB)
📄
emacs.pyc
(2.32 KB)
📄
emacs.pyo
(2.32 KB)
📄
friendly.py
(2.46 KB)
📄
friendly.pyc
(2.39 KB)
📄
friendly.pyo
(2.39 KB)
📄
fruity.py
(1.31 KB)
📄
fruity.pyc
(1.59 KB)
📄
fruity.pyo
(1.59 KB)
📄
manni.py
(2.32 KB)
📄
manni.pyc
(2.52 KB)
📄
manni.pyo
(2.52 KB)
📄
murphy.py
(2.69 KB)
📄
murphy.pyc
(2.56 KB)
📄
murphy.pyo
(2.56 KB)
📄
native.py
(1.89 KB)
📄
native.pyc
(2.11 KB)
📄
native.pyo
(2.11 KB)
📄
pastie.py
(2.42 KB)
📄
pastie.pyc
(2.4 KB)
📄
pastie.pyo
(2.4 KB)
📄
perldoc.py
(2.12 KB)
📄
perldoc.pyc
(2.19 KB)
📄
perldoc.pyo
(2.19 KB)
📄
tango.py
(6.99 KB)
📄
tango.pyc
(4.1 KB)
📄
tango.pyo
(4.1 KB)
📄
trac.py
(1.89 KB)
📄
trac.pyc
(1.97 KB)
📄
trac.pyo
(1.97 KB)
📄
vim.py
(1.93 KB)
📄
vim.pyc
(1.91 KB)
📄
vim.pyo
(1.91 KB)
📄
vs.py
(1.05 KB)
📄
vs.pyc
(1.26 KB)
📄
vs.pyo
(1.26 KB)
Editing: __init__.py
# -*- coding: utf-8 -*- """ pygments.styles ~~~~~~~~~~~~~~~ Contains built-in styles. :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.plugin import find_plugin_styles from pygments.util import ClassNotFound #: Maps style names to 'submodule::classname'. STYLE_MAP = { 'default': 'default::DefaultStyle', 'emacs': 'emacs::EmacsStyle', 'friendly': 'friendly::FriendlyStyle', 'colorful': 'colorful::ColorfulStyle', 'autumn': 'autumn::AutumnStyle', 'murphy': 'murphy::MurphyStyle', 'manni': 'manni::ManniStyle', 'perldoc': 'perldoc::PerldocStyle', 'pastie': 'pastie::PastieStyle', 'borland': 'borland::BorlandStyle', 'trac': 'trac::TracStyle', 'native': 'native::NativeStyle', 'fruity': 'fruity::FruityStyle', 'bw': 'bw::BlackWhiteStyle', 'vs': 'vs::VisualStudioStyle', 'tango': 'tango::TangoStyle', } def get_style_by_name(name): if name in STYLE_MAP: mod, cls = STYLE_MAP[name].split('::') 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 = name cls = name.title() + "Style" try: mod = __import__('pygments.styles.' + mod, None, None, [cls]) except ImportError: raise ClassNotFound("Could not find style module %r" % mod + (builtin and ", though it should be builtin") + ".") try: return getattr(mod, cls) except AttributeError: raise ClassNotFound("Could not find style class %r in style module." % cls) def get_all_styles(): """Return an generator for all styles by name, both builtin and plugin.""" for name in STYLE_MAP: yield name for name, _ in find_plugin_styles(): yield name
Upload File
Create Folder