def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def paint(self, c):
		self.leaf.paint(c)
		if self.lchild != None:
			self.lchild.paint(c)
		if self.rchild != None:
			self.rchild.paint(c)