parameters: (self, start, txt)
docstring: Apply any desired output formatting to the text in
          the buffer.
          @param start: Start position of new text
          @param txt: the new text that was added to the buffer
docstring_summary: Apply any desired output formatting to the text in
          the buffer.
          @param start: Start position of new text
          @param txt: the new text that was added to the buffer
docstring_tokens: Apply any desired output formatting to the text in the buffer . @param start : Start position of new text @param txt : the new text that was added to the buffer
function: def ApplyStyles(self, start, txt):
          """Apply any desired output formatting to the text in
          the buffer.
          @param start: Start position of new text
          @param txt: the new text that was added to the buffer
  
          """
          handler = self.GetCurrentHandler()
          style = handler.StyleText(self, start, txt)
  
          # Ring the bell if there was an error and option is enabled
          if style == handlers.STYLE_ERROR and \
             self.Preferences.get('errorbeep', False):
              wx.Bell()
function_tokens: def ApplyStyles ( self , start , txt ) : handler = self . GetCurrentHandler ( ) style = handler . StyleText ( self , start , txt ) # Ring the bell if there was an error and option is enabled if style == handlers . STYLE_ERROR and self . Preferences . get ( 'errorbeep' , False ) : wx . Bell ( )