QScintilla/Shell.py

changeset 943
1246bd8280a6
parent 826
2e3e2055e715
child 945
8cd4d08fa9f6
equal deleted inserted replaced
942:1d2a6b8509c6 943:1246bd8280a6
280 Private method to configure the text display. 280 Private method to configure the text display.
281 """ 281 """
282 self.setTabWidth(Preferences.getEditor("TabWidth")) 282 self.setTabWidth(Preferences.getEditor("TabWidth"))
283 if Preferences.getEditor("ShowWhitespace"): 283 if Preferences.getEditor("ShowWhitespace"):
284 self.setWhitespaceVisibility(QsciScintilla.WsVisible) 284 self.setWhitespaceVisibility(QsciScintilla.WsVisible)
285 try:
286 self.setWhitespaceForegroundColor(
287 Preferences.getEditorColour("WhitespaceForeground"))
288 self.setWhitespaceBackgroundColor(
289 Preferences.getEditorColour("WhitespaceBackground"))
290 self.setWhitespaceSize(
291 Preferences.getEditor("WhitespaceSize"))
292 except AttributeError:
293 # QScintilla before 2.5 doesn't support this
294 pass
285 else: 295 else:
286 self.setWhitespaceVisibility(QsciScintilla.WsInvisible) 296 self.setWhitespaceVisibility(QsciScintilla.WsInvisible)
287 self.setEolVisibility(Preferences.getEditor("ShowEOL")) 297 self.setEolVisibility(Preferences.getEditor("ShowEOL"))
288 if Preferences.getEditor("BraceHighlighting"): 298 if Preferences.getEditor("BraceHighlighting"):
289 self.setBraceMatching(QsciScintilla.SloppyBraceMatch) 299 self.setBraceMatching(QsciScintilla.SloppyBraceMatch)

eric ide

mercurial