Classes | Variables
framework.helpers.highlighter Namespace Reference

Classes

class  Highlighter
 
class  HighlighterYaml
 

Variables

list ALL_COLOR_STYLES = [STYLE_ANSI_16] + list(pygments.styles.get_all_styles())
 
 COLOR = flags.DEFINE_bool("color", default=True, help='Colorize the output')
 
 COLOR_STYLE
 
 Formatter = pygments.formatter.Formatter
 
 Lexer = pygments.lexer.Lexer
 
 logger = logging.getLogger(__name__)
 
 NullFormatter = pygments.formatters.other.NullFormatter
 
string STYLE_ANSI_16 = 'ansi16'
 
 Terminal256Formatter = pygments.formatters.terminal256.Terminal256Formatter
 
 TerminalFormatter = pygments.formatters.terminal.TerminalFormatter
 
 YamlLexer = pygments.lexers.data.YamlLexer
 

Variable Documentation

◆ ALL_COLOR_STYLES

list framework.helpers.highlighter.ALL_COLOR_STYLES = [STYLE_ANSI_16] + list(pygments.styles.get_all_styles())

Definition at line 37 of file highlighter.py.

◆ COLOR

framework.helpers.highlighter.COLOR = flags.DEFINE_bool("color", default=True, help='Colorize the output')

Definition at line 40 of file highlighter.py.

◆ COLOR_STYLE

framework.helpers.highlighter.COLOR_STYLE
Initial value:
1 = flags.DEFINE_enum(
2  "color_style",
3  default='material',
4  enum_values=ALL_COLOR_STYLES,
5  help=('Color styles for terminals supporting 256 colors. '
6  f'Use {STYLE_ANSI_16} style for terminals supporting 8/16 colors'))

Definition at line 41 of file highlighter.py.

◆ Formatter

framework.helpers.highlighter.Formatter = pygments.formatter.Formatter

Definition at line 53 of file highlighter.py.

◆ Lexer

framework.helpers.highlighter.Lexer = pygments.lexer.Lexer

Definition at line 51 of file highlighter.py.

◆ logger

framework.helpers.highlighter.logger = logging.getLogger(__name__)

Definition at line 48 of file highlighter.py.

◆ NullFormatter

framework.helpers.highlighter.NullFormatter = pygments.formatters.other.NullFormatter

Definition at line 54 of file highlighter.py.

◆ STYLE_ANSI_16

string framework.helpers.highlighter.STYLE_ANSI_16 = 'ansi16'

Definition at line 35 of file highlighter.py.

◆ Terminal256Formatter

framework.helpers.highlighter.Terminal256Formatter = pygments.formatters.terminal256.Terminal256Formatter

Definition at line 56 of file highlighter.py.

◆ TerminalFormatter

framework.helpers.highlighter.TerminalFormatter = pygments.formatters.terminal.TerminalFormatter

Definition at line 55 of file highlighter.py.

◆ YamlLexer

framework.helpers.highlighter.YamlLexer = pygments.lexers.data.YamlLexer

Definition at line 52 of file highlighter.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:10