46 """ |
48 """ |
47 self.setFoldPreprocessor(Preferences.getEditor("HtmlFoldPreprocessor")) |
49 self.setFoldPreprocessor(Preferences.getEditor("HtmlFoldPreprocessor")) |
48 self.setCaseSensitiveTags( |
50 self.setCaseSensitiveTags( |
49 Preferences.getEditor("HtmlCaseSensitiveTags")) |
51 Preferences.getEditor("HtmlCaseSensitiveTags")) |
50 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
52 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
51 try: |
53 with contextlib.suppress(AttributeError): |
52 self.setFoldScriptComments( |
54 self.setFoldScriptComments( |
53 Preferences.getEditor("HtmlFoldScriptComments")) |
55 Preferences.getEditor("HtmlFoldScriptComments")) |
54 self.setFoldScriptHeredocs( |
56 self.setFoldScriptHeredocs( |
55 Preferences.getEditor("HtmlFoldScriptHeredocs")) |
57 Preferences.getEditor("HtmlFoldScriptHeredocs")) |
56 self.setScriptsStyled(Preferences.getEditor("XMLStyleScripts")) |
58 self.setScriptsStyled(Preferences.getEditor("XMLStyleScripts")) |
57 except AttributeError: |
|
58 pass |
|
59 |
59 |
60 def isCommentStyle(self, style): |
60 def isCommentStyle(self, style): |
61 """ |
61 """ |
62 Public method to check, if a style is a comment style. |
62 Public method to check, if a style is a comment style. |
63 |
63 |