Preferences/ConfigurationPages/EditorPropertiesPage.py

changeset 4206
8f0d697e6384
parent 4021
195a471c327b
child 4631
5c1a96925da4
--- a/Preferences/ConfigurationPages/EditorPropertiesPage.py	Tue Apr 07 13:56:03 2015 +0200
+++ b/Preferences/ConfigurationPages/EditorPropertiesPage.py	Tue Apr 07 18:58:19 2015 +0200
@@ -72,6 +72,18 @@
                 Preferences.getEditor("CppHighlightHashQuotedStrings"))
         else:
             self.cppHighlightHashQuotedCheckBox.setEnabled(False)
+        if QSCINTILLA_VERSION() >= 0x020900:
+            self.cppHighlightBackQuotedCheckBox.setChecked(
+                Preferences.getEditor("CppHighlightBackQuotedStrings"))
+            self.cppHighlightEsacepSequencesCheckBox.setChecked(
+                Preferences.getEditor("CppHighlightEscapeSequences"))
+            self.cppVerbatimStringEscapeAllowedCheckBox.setChecked(
+                Preferences.getEditor(
+                    "CppVerbatimStringEscapeSequencesAllowed"))
+        else:
+            self.cppHighlightBackQuotedCheckBox.setEnabled(False)
+            self.cppHighlightEsacepSequencesCheckBox.setEnabled(False)
+            self.cppVerbatimStringEscapeAllowedCheckBox.setEnabled(False)
         
         # CMake
         self.cmakeFoldAtElseCheckBox.setChecked(
@@ -352,6 +364,16 @@
             Preferences.setEditor(
                 "CppHighlightHashQuotedStrings",
                 self.cppHighlightHashQuotedCheckBox.isChecked())
+        if QSCINTILLA_VERSION() >= 0x020900:
+            Preferences.setEditor(
+                "CppHighlightBackQuotedStrings",
+                self.cppHighlightBackQuotedCheckBox.isChecked())
+            Preferences.setEditor(
+                "CppHighlightEscapeSequences",
+                self.cppHighlightEsacepSequencesCheckBox.isChecked())
+            Preferences.setEditor(
+                "CppVerbatimStringEscapeSequencesAllowed",
+                self.cppVerbatimStringEscapeAllowedCheckBox.isChecked())
         
         # CMake
         Preferences.setEditor(

eric ide

mercurial