docs: def _init_actions(self, create_standard_actions):
          """ Init context menu action """
          menu_advanced = QtWidgets.QMenu(_('Advanced'))
          self.add_menu(menu_advanced)
          self._sub_menus = {
              'Advanced': menu_advanced
          }
          if create_standard_actions:
              # Undo
              action = QtWidgets.QAction(_('Undo'), self)
              action.setShortcut('Ctrl+Z')
              action.setIcon(icons.icon(
                  'edit-undo', ':/pyqode-icons/rc/edit-undo.png', 'fa.undo'))
              action.triggered.connect(self.undo)
              self.undoAvailable.connect(action.setVisible)
              action.setVisible(False)
              self.add_action(action, sub_menu=None)
              self.action_undo = action
              # Redo
              action = QtWidgets.QAction(_('Redo'), self)
              action.setShortcut('Ctrl+Y')
              action.setIcon(icons.icon(
                  'edit-redo', ':/pyqode-icons/rc/edit-redo.png', 'fa.repeat'))
              action.triggered.connect(self.redo)
              self.redoAvailable.connect(action.setVisible)
              action.setVisible(False)
              self.add_action(action, sub_menu=None)
              self.action_redo = action
              # Copy
              action = QtWidgets.QAction(_('Copy'), self)
              action.setShortcut(QtGui.QKeySequence.Copy)
              action.setIcon(icons.icon(
                  'edit-copy', ':/pyqode-icons/rc/edit-copy.png', 'fa.copy'))
              action.triggered.connect(self.copy)
              self.add_action(action, sub_menu=None)
              self.action_copy = action
              # cut
              action = QtWidgets.QAction(_('Cut'), self)
              action.setShortcut(QtGui.QKeySequence.Cut)
              action.setIcon(icons.icon(
                  'edit-cut', ':/pyqode-icons/rc/edit-cut.png', 'fa.cut'))
              action.triggered.connect(self.cut)
              self.add_action(action, sub_menu=None)
              self.action_cut = action
              # paste
              action = QtWidgets.QAction(_('Paste'), self)
              action.setShortcut(QtGui.QKeySequence.Paste)
              action.setIcon(icons.icon(
                  'edit-paste', ':/pyqode-icons/rc/edit-paste.png',
                  'fa.paste'))
              action.triggered.connect(self.paste)
              self.add_action(action, sub_menu=None)
              self.action_paste = action
          # duplicate line
          action = QtWidgets.QAction(_('Duplicate line'), self)
          action.setShortcut('Ctrl+D')
          action.triggered.connect(self.duplicate_line)
          self.add_action(action, sub_menu=None)
          self.action_duplicate_line = action
          # swap line up
          action = QtWidgets.QAction(_('Swap line up'), self)
          action.setShortcut("Alt++")
          action.triggered.connect(self.swapLineUp)
          self.add_action(action, sub_menu=None)
          self.action_swap_line_up = action
          # swap line down
          action = QtWidgets.QAction(_('Swap line down'), self)
          action.setShortcut("Alt+-")
          action.triggered.connect(self.swapLineDown)
          self.add_action(action, sub_menu=None)
          self.action_swap_line_down = action
          # select all
          action = QtWidgets.QAction(_('Select all'), self)
          action.setShortcut(QtGui.QKeySequence.SelectAll)
          action.triggered.connect(self.selectAll)
          self.action_select_all = action
          self.add_action(self.action_select_all, sub_menu=None)
          self.add_separator(sub_menu=None)
          if create_standard_actions:
              # indent
              action = QtWidgets.QAction(_('Indent'), self)
              action.setShortcut('Tab')
              action.setIcon(icons.icon(
                  'format-indent-more',
                  ':/pyqode-icons/rc/format-indent-more.png', 'fa.indent'))
              action.triggered.connect(self.indent)
              self.add_action(action)
              self.action_indent = action
              # unindent
              action = QtWidgets.QAction(_('Un-indent'), self)
              action.setShortcut('Shift+Tab')
              action.setIcon(icons.icon(
                  'format-indent-less',
                  ':/pyqode-icons/rc/format-indent-less.png', 'fa.dedent'))
              action.triggered.connect(self.un_indent)
              self.add_action(action)
              self.action_un_indent = action
              self.add_separator()
          # goto
          action = QtWidgets.QAction(_('Go to line'), self)
          action.setShortcut('Ctrl+G')
          action.setIcon(icons.icon(
              'go-jump', ':/pyqode-icons/rc/goto-line.png', 'fa.share'))
          action.triggered.connect(self.goto_line)
          self.add_action(action)
          self.action_goto_line = action