def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def poll(cls, context):
        userpref = context.user_preferences
        return (userpref.active_section == 'INTERFACE')