Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/PyQt5/PyQt
/ HighlightingRule
Class
HighlightingRule
Demo/TestSerializeModel.py:27–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
25
26
27
class
HighlightingRule:
28
def
__init__(self, pattern, color):
29
self.pattern = QRegExp(pattern)
30
self.format = QTextCharFormat()
31
self.format.setForeground(color)
32
33
34
class
JsonHighlighter(QSyntaxHighlighter):
Callers
1
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
1
__init__
Method · 0.56