code: def setup_mnu_style(self, editor):
          
          menu = QtWidgets.QMenu('Styles', self.menuEdit)
          group = QtWidgets.QActionGroup(self)
          self.styles_group = group
          current_style = editor.syntax_highlighter.color_scheme.name
          group.triggered.connect(self.on_style_changed)
          for s in sorted(PYGMENTS_STYLES):
              a = QtWidgets.QAction(menu)
              a.setText(s)
              a.setCheckable(True)
              if s == current_style:
                  a.setChecked(True)
              group.addAction(a)
              menu.addAction(a)
          self.menuEdit.addMenu(menu)
docs: setup the style menu for an editor tab