24 """ |
25 """ |
25 QsciLexerTeX.__init__(self, parent) |
26 QsciLexerTeX.__init__(self, parent) |
26 Lexer.__init__(self) |
27 Lexer.__init__(self) |
27 |
28 |
28 self.commentString = "%" |
29 self.commentString = "%" |
|
30 |
|
31 def initProperties(self): |
|
32 """ |
|
33 Public slot to initialize the properties. |
|
34 """ |
|
35 try: |
|
36 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
|
37 self.setFoldComments(Preferences.getEditor("TexFoldComment")) |
|
38 self.setProcessComments(Preferences.getEditor("TexProcessComments")) |
|
39 self.setProcessIf(Preferences.getEditor("TexProcessIf")) |
|
40 except AttributeError: |
|
41 pass |
29 |
42 |
30 def isCommentStyle(self, style): |
43 def isCommentStyle(self, style): |
31 """ |
44 """ |
32 Public method to check, if a style is a comment style. |
45 Public method to check, if a style is a comment style. |
33 |
46 |