highlighters.py
Bases: foundations.dataStructures.Structure
This class represents a storage object for highlighters rule.
Parameters: | **kwargs – pattern, format. ( Key / Value pairs ) |
---|
Bases: object
This class defines the formats tree object representing higlighters theme.
Parameters: | theme – Theme. ( Dictionary ) |
---|
This method is the property for self.__rootNode attribute.
Returns: | self.__rootNode. ( AbstractCompositeNode ) |
---|
Bases: PyQt4.QtGui.QSyntaxHighlighter
This class is a QSyntaxHighlighter subclass used as a base for highlighters classes.
Parameters: | parent – Widget parent. ( QObject ) |
---|
This method is the property for self.__formats attribute.
Returns: | self.__formats. ( FormatsTree ) |
---|
This method is the property for self.__rules attribute.
Returns: | self.__rules. ( Tuple / List ) |
---|
Bases: umbra.ui.highlighters.AbstractHighlighter
This class is a AbstractHighlighter subclass providing syntax highlighting for documents.
Parameters: |
|
---|
This method is the property for self.__theme attribute.
Returns: | self.__theme. ( Dictionary ) |
---|
This method reimplements the AbstractHighlighter.highlightBlock() method.
Parameters: | block – Text block. ( QString ) |
---|
This method highlights given multiline text block.
Parameters: |
|
---|---|
Returns: | Current block matching state. ( Boolean ) |