highlighters.py
Bases: foundations.dataStructures.Structure
Defines a storage object for highlighters rule.
Initializes the class.
Parameters: | **kwargs (dict) – pattern, format. |
---|
Bases: object
Defines the formats tree object representing higlighters theme.
Initializes the class.
Parameters: | theme (dict) – Theme. |
---|
Property for self.__rootNode attribute.
Returns: | self.__rootNode. |
---|---|
Return type: | AbstractCompositeNode |
Bases: PyQt4.QtGui.QSyntaxHighlighter
Defines a QSyntaxHighlighter subclass used as a base for highlighters classes.
Initializes the class.
Parameters: | parent (QObject) – Widget parent. |
---|
Property for self.__formats attribute.
Returns: | self.__formats. |
---|---|
Return type: | FormatsTree |
Bases: umbra.ui.highlighters.AbstractHighlighter
Defines a AbstractHighlighter subclass providing syntax highlighting for documents.
Initializes the class.
Parameters: |
|
---|
Reimplements the AbstractHighlighter.highlightBlock() method.
Parameters: | block (QString) – Text block. |
---|
Highlights given multiline text block.
Parameters: |
|
---|---|
Returns: | Current block matching state. |
Return type: | bool |