PythonHighlighter
Base classes
| Name | Children | Inherits |
|---|---|---|
| BaseRuleSyntaxHighlighter prettyqt.syntaxhighlighters.baserulesyntaxhighlighter |
⋔ Inheritance diagram
graph TD
3122470770["syntaxhighlighters.PythonHighlighter"]
1806335888["syntaxhighlighters.BaseRuleSyntaxHighlighter"]
1397204487["gui.SyntaxHighlighter"]
1524332846["gui.SyntaxHighlighterMixin"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
1270797816["QtGui.QSyntaxHighlighter"]
3984060476["QtCore.QObject"]
37984305["Shiboken.Object"]
1806335888 --> 3122470770
1397204487 --> 1806335888
1524332846 --> 1397204487
3227531497 --> 1524332846
2751680898 --> 3227531497
2751680898 --> 1524332846
1270797816 --> 1397204487
3984060476 --> 1270797816
37984305 --> 3984060476
2751680898 --> 37984305
🛈 DocStrings
Bases: BaseRuleSyntaxHighlighter
Syntax highlighter for the Python language.
Source code in prettyqt/syntaxhighlighters/pythonhighlighter.py
highlightBlock(text: str)
Apply syntax highlighting to the given block of text.
Source code in prettyqt/syntaxhighlighters/pythonhighlighter.py
match_multiline(text: str, delimiter: core.RegularExpression, in_state: int, style: gui.TextCharFormat)
Do highlighting of multi-line strings.
delimiter should be a
core.RegExp for triple-single-quotes or triple-double-quotes, and
in_state should be a unique integer to represent the corresponding
state changes when inside those strings. Returns True if we're still
inside a multi-line string when this function is finished.