QScintilla/Editor.py

changeset 6930
33c98cea84f0
parent 6891
93f82da09f22
child 6932
8a3df4c6ac9a
equal deleted inserted replaced
6929:0db8a4378ad7 6930:33c98cea84f0
4323 Preferences.getEditorColour("MatchingBraceBack")) 4323 Preferences.getEditorColour("MatchingBraceBack"))
4324 self.setUnmatchedBraceForegroundColor( 4324 self.setUnmatchedBraceForegroundColor(
4325 Preferences.getEditorColour("NonmatchingBrace")) 4325 Preferences.getEditorColour("NonmatchingBrace"))
4326 self.setUnmatchedBraceBackgroundColor( 4326 self.setUnmatchedBraceBackgroundColor(
4327 Preferences.getEditorColour("NonmatchingBraceBack")) 4327 Preferences.getEditorColour("NonmatchingBraceBack"))
4328 # TODO: add support for multiple selections
4328 if Preferences.getEditor("CustomSelectionColours"): 4329 if Preferences.getEditor("CustomSelectionColours"):
4329 self.setSelectionBackgroundColor( 4330 self.setSelectionBackgroundColor(
4330 Preferences.getEditorColour("SelectionBackground")) 4331 Preferences.getEditorColour("SelectionBackground"))
4331 else: 4332 else:
4332 self.setSelectionBackgroundColor( 4333 self.setSelectionBackgroundColor(
4381 self.spellingIndicator = QsciScintilla.INDIC_CONTAINER + 1 4382 self.spellingIndicator = QsciScintilla.INDIC_CONTAINER + 1
4382 self.indicatorDefine( 4383 self.indicatorDefine(
4383 self.spellingIndicator, QsciScintilla.INDIC_SQUIGGLE, 4384 self.spellingIndicator, QsciScintilla.INDIC_SQUIGGLE,
4384 Preferences.getEditorColour("SpellingMarkers")) 4385 Preferences.getEditorColour("SpellingMarkers"))
4385 self.__setSpelling() 4386 self.__setSpelling()
4387
4388 # TODO: add support for a highlight indicator (if not possible via multiple selections)
4386 4389
4387 self.setCursorFlashTime(QApplication.cursorFlashTime()) 4390 self.setCursorFlashTime(QApplication.cursorFlashTime())
4388 4391
4389 try: 4392 try:
4390 if Preferences.getEditor("AnnotationsEnabled"): 4393 if Preferences.getEditor("AnnotationsEnabled"):

eric ide

mercurial