47 """ |
49 """ |
48 Public slot to initialize the properties. |
50 Public slot to initialize the properties. |
49 """ |
51 """ |
50 self.setFoldComments(Preferences.getEditor("CssFoldComment")) |
52 self.setFoldComments(Preferences.getEditor("CssFoldComment")) |
51 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
53 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
52 try: |
54 with contextlib.suppress(AttributeError): |
53 self.setHSSLanguage( |
55 self.setHSSLanguage( |
54 Preferences.getEditor("CssHssSupport")) |
56 Preferences.getEditor("CssHssSupport")) |
55 self.setLessLanguage( |
57 self.setLessLanguage( |
56 Preferences.getEditor("CssLessSupport")) |
58 Preferences.getEditor("CssLessSupport")) |
57 self.setSCSSLanguage( |
59 self.setSCSSLanguage( |
58 Preferences.getEditor("CssSassySupport")) |
60 Preferences.getEditor("CssSassySupport")) |
59 except AttributeError: |
|
60 pass |
|
61 |
61 |
62 def isCommentStyle(self, style): |
62 def isCommentStyle(self, style): |
63 """ |
63 """ |
64 Public method to check, if a style is a comment style. |
64 Public method to check, if a style is a comment style. |
65 |
65 |