Module implementing a custom lexer using pygments.
PYGMENTS_ATTRIBUTE |
PYGMENTS_BACKTICKSTRING |
PYGMENTS_BUILTIN |
PYGMENTS_CHAR |
PYGMENTS_CLASS |
PYGMENTS_COMMENT |
PYGMENTS_CONSTANT |
PYGMENTS_DECORATOR |
PYGMENTS_DEFAULT |
PYGMENTS_DELETED |
PYGMENTS_DOCSTRING |
PYGMENTS_DOUBLESTRING |
PYGMENTS_EMPHASIZE |
PYGMENTS_ENTITY |
PYGMENTS_ERROR |
PYGMENTS_ESCAPE |
PYGMENTS_EXCEPTION |
PYGMENTS_FUNCTION |
PYGMENTS_GENERIC_ERROR |
PYGMENTS_HASHBANG |
PYGMENTS_HEADING |
PYGMENTS_HEREDOC |
PYGMENTS_INSERTED |
PYGMENTS_KEYWORD |
PYGMENTS_LABEL |
PYGMENTS_LITERAL |
PYGMENTS_MULTILINECOMMENT |
PYGMENTS_NAMESPACE |
PYGMENTS_NUMBER |
PYGMENTS_OPERATOR |
PYGMENTS_OTHER |
PYGMENTS_OUTPUT |
PYGMENTS_PREPROCESSOR |
PYGMENTS_PROMPT |
PYGMENTS_PROPERTY |
PYGMENTS_PSEUDOKEYWORD |
PYGMENTS_PUNCTUATION |
PYGMENTS_REGEX |
PYGMENTS_RESERVEDKEYWORD |
PYGMENTS_SCALAR |
PYGMENTS_SINGLESTRING |
PYGMENTS_STRING |
PYGMENTS_STRONG |
PYGMENTS_SUBHEADING |
PYGMENTS_SYMBOL |
PYGMENTS_TAG |
PYGMENTS_TRACEBACK |
PYGMENTS_TYPEKEYWORD |
PYGMENTS_VARIABLE |
PYGMENTS_WHITESPACE |
PYGMENTS_WORD |
TOKEN_MAP |
LexerPygments | Class implementing a custom lexer using pygments. |
None |
Class implementing a custom lexer using pygments.
None |
None |
LexerPygments | Constructor |
__guessLexer | Private method to guess a pygments lexer. |
canStyle | Public method to check, if the lexer is able to style the text. |
defaultColor | Public method to get the default foreground color for a style. |
defaultEolFill | Public method to get the default fill to eol flag. |
defaultFont | Public method to get the default font for a style. |
defaultKeywords | Public method to get the default keywords. |
defaultPaper | Public method to get the default background color for a style. |
description | Public method returning the descriptions of the styles supported by the lexer. |
isCommentStyle | Public method to check, if a style is a comment style. |
isStringStyle | Public method to check, if a style is a string style. |
language | Public method returning the language of the lexer. |
name | Public method to get the name of the pygments lexer. |
styleText | Public method to perform the styling. |
None |
Constructor
Private method to guess a pygments lexer.
Public method to check, if the lexer is able to style the text.
Public method to get the default foreground color for a style.
Public method to get the default fill to eol flag.
Public method to get the default font for a style.
Public method to get the default keywords.
Public method to get the default background color for a style.
Public method returning the descriptions of the styles supported by the lexer.
Public method to check, if a style is a comment style.
Public method to check, if a style is a string style.
Public method returning the language of the lexer.
Public method to get the name of the pygments lexer.
Public method to perform the styling.