code: def on_new(self):
          
          editor = self.tabWidget.create_new_document()
          editor.cursorPositionChanged.connect(self.on_cursor_pos_changed)
          self.refresh_color_scheme()
docs: Add a new empty code editor to the tab widget