40 self.setFoldPreprocessor(Preferences.getEditor("HtmlFoldPreprocessor")) |
40 self.setFoldPreprocessor(Preferences.getEditor("HtmlFoldPreprocessor")) |
41 self.setCaseSensitiveTags( |
41 self.setCaseSensitiveTags( |
42 Preferences.getEditor("HtmlCaseSensitiveTags")) |
42 Preferences.getEditor("HtmlCaseSensitiveTags")) |
43 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
43 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
44 try: |
44 try: |
45 self.setFoldScriptComments(Preferences.getEditor("HtmlFoldScriptComments")) |
45 self.setFoldScriptComments( |
46 self.setFoldScriptHeredocs(Preferences.getEditor("HtmlFoldScriptHeredocs")) |
46 Preferences.getEditor("HtmlFoldScriptComments")) |
|
47 self.setFoldScriptHeredocs( |
|
48 Preferences.getEditor("HtmlFoldScriptHeredocs")) |
47 except AttributeError: |
49 except AttributeError: |
48 pass |
50 pass |
49 try: |
51 try: |
50 self.setDjangoTemplates(Preferences.getEditor("HtmlDjangoTemplates")) |
52 self.setDjangoTemplates( |
|
53 Preferences.getEditor("HtmlDjangoTemplates")) |
51 self.setMakoTemplates(Preferences.getEditor("HtmlMakoTemplates")) |
54 self.setMakoTemplates(Preferences.getEditor("HtmlMakoTemplates")) |
52 except AttributeError: |
55 except AttributeError: |
53 pass |
56 pass |
54 |
57 |
55 def isCommentStyle(self, style): |
58 def isCommentStyle(self, style): |
56 """ |
59 """ |
57 Public method to check, if a style is a comment style. |
60 Public method to check, if a style is a comment style. |
58 |
61 |
|
62 @param style style to check (integer) |
59 @return flag indicating a comment style (boolean) |
63 @return flag indicating a comment style (boolean) |
60 """ |
64 """ |
61 return style in [QsciLexerHTML.HTMLComment, |
65 return style in [QsciLexerHTML.HTMLComment, |
62 QsciLexerHTML.ASPXCComment, |
66 QsciLexerHTML.ASPXCComment, |
63 QsciLexerHTML.SGMLComment, |
67 QsciLexerHTML.SGMLComment, |
76 |
80 |
77 def isStringStyle(self, style): |
81 def isStringStyle(self, style): |
78 """ |
82 """ |
79 Public method to check, if a style is a string style. |
83 Public method to check, if a style is a string style. |
80 |
84 |
|
85 @param style style to check (integer) |
81 @return flag indicating a string style (boolean) |
86 @return flag indicating a string style (boolean) |
82 """ |
87 """ |
83 return style in [QsciLexerHTML.HTMLDoubleQuotedString, |
88 return style in [QsciLexerHTML.HTMLDoubleQuotedString, |
84 QsciLexerHTML.HTMLSingleQuotedString, |
89 QsciLexerHTML.HTMLSingleQuotedString, |
85 QsciLexerHTML.SGMLDoubleQuotedString, |
90 QsciLexerHTML.SGMLDoubleQuotedString, |