Module implementing a custom lexer using pygments.
PYGMENTS_ERROR |
PYGMENTS_INSERTED |
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. |
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. |
styleBitsNeeded | Public method to get the number of style bits needed by the 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 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 get the number of style bits needed by the lexer.
Public method to perform the styling.