[console] Fix unclosed strings don't respect the preset font size

This commit is contained in:
Nyall Dawson 2018-05-22 15:43:14 +10:00
parent 33669ab723
commit 6d87a4cf3f
3 changed files with 3 additions and 0 deletions

View File

@ -246,6 +246,7 @@ class Editor(QsciScintilla):
self.lexer.setFont(font, 1)
self.lexer.setFont(font, 3)
self.lexer.setFont(font, 4)
self.lexer.setFont(font, QsciLexerPython.UnclosedString)
for style in range(0, 33):
paperColor = QColor(self.settings.value("pythonConsole/paperBackgroundColorEditor", QColor(Qt.white)))

View File

@ -195,6 +195,7 @@ class ShellOutputScintilla(QsciScintilla):
self.lexer.setFont(font, 2)
self.lexer.setFont(font, 3)
self.lexer.setFont(font, 4)
self.lexer.setFont(font, QsciLexerPython.UnclosedString)
for style in range(0, 33):
paperColor = QColor(self.settings.value("pythonConsole/paperBackgroundColor", QColor(Qt.white)))

View File

@ -199,6 +199,7 @@ class ShellScintilla(QsciScintilla, code.InteractiveInterpreter):
self.lexer.setFont(font, 1)
self.lexer.setFont(font, 3)
self.lexer.setFont(font, 4)
self.lexer.setFont(font, QsciLexerPython.UnclosedString)
for style in range(0, 33):
paperColor = QColor(self.settings.value("pythonConsole/paperBackgroundColor", QColor(Qt.white)))