'Apply syntax highlighter settings'

def apply_highlighter_settings(self, color_scheme=None):

    if (self.highlighter is not None):
        self.highlighter.setup_formats(self.font())
        if (color_scheme is not None):
            self.set_color_scheme(color_scheme)
        else:
            self.highlighter.rehighlight()
