euporie.core.app.style_from_pygments_cls

euporie.core.app.style_from_pygments_cls(pygments_style_cls: type[PygmentsStyle]) Style

Shortcut to create a Style instance from a Pygments style class and a style dictionary.

Example:

from prompt_toolkit.styles.from_pygments import style_from_pygments_cls
from pygments.styles import get_style_by_name
style = style_from_pygments_cls(get_style_by_name('monokai'))
Parameters:

pygments_style_cls – Pygments style class to start from.