Show More
@@ -94,7 +94,7 b' class PygmentsHighlighter(QtGui.QSyntaxHighlighter):' | |||||
94 | def __init__(self, parent, lexer=None): |
|
94 | def __init__(self, parent, lexer=None): | |
95 | super(PygmentsHighlighter, self).__init__(parent) |
|
95 | super(PygmentsHighlighter, self).__init__(parent) | |
96 |
|
96 | |||
97 |
self._document = |
|
97 | self._document = self.document() | |
98 | self._formatter = HtmlFormatter(nowrap=True) |
|
98 | self._formatter = HtmlFormatter(nowrap=True) | |
99 | self._lexer = lexer if lexer else PythonLexer() |
|
99 | self._lexer = lexer if lexer else PythonLexer() | |
100 | self.set_style('default') |
|
100 | self.set_style('default') |
General Comments 0
You need to be logged in to leave comments.
Login now