Skip to content
Permalink
Browse files

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

  • Loading branch information
nyalldawson committed May 22, 2018
1 parent 33669ab commit 6d87a4cf3fde22ff2c28aacc8f22cebb3fdd8672
Showing with 3 additions and 0 deletions.
  1. +1 −0 python/console/console_editor.py
  2. +1 −0 python/console/console_output.py
  3. +1 −0 python/console/console_sci.py
@@ -246,6 +246,7 @@ def setLexers(self):
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)))
@@ -195,6 +195,7 @@ def setLexers(self):
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)))
@@ -199,6 +199,7 @@ def setLexers(self):
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)))

0 comments on commit 6d87a4c

Please sign in to comment.
You can’t perform that action at this time.