QScintilla/Lexers/LexerTeX.py

changeset 948
fe7b94ed01ec
parent 945
8cd4d08fa9f6
child 1131
7781e396c903
--- a/QScintilla/Lexers/LexerTeX.py	Sat Mar 12 13:47:25 2011 +0100
+++ b/QScintilla/Lexers/LexerTeX.py	Sat Mar 12 17:42:26 2011 +0100
@@ -10,6 +10,7 @@
 from PyQt4.Qsci import QsciLexerTeX
 
 from .Lexer import Lexer
+import Preferences
 
 
 class LexerTeX(QsciLexerTeX, Lexer):
@@ -27,6 +28,18 @@
         
         self.commentString = "%"
     
+    def initProperties(self):
+        """
+        Public slot to initialize the properties.
+        """
+        try:
+            self.setFoldCompact(Preferences.getEditor("AllFoldCompact"))
+            self.setFoldComments(Preferences.getEditor("TexFoldComment"))
+            self.setProcessComments(Preferences.getEditor("TexProcessComments"))
+            self.setProcessIf(Preferences.getEditor("TexProcessIf"))
+        except AttributeError:
+            pass
+    
     def isCommentStyle(self, style):
         """
         Public method to check, if a style is a comment style.

eric ide

mercurial