(self, menu)
copy as formatted
copy as formatted
copy as formatted
def on_cm_copy_as(self, menu):
        """ copy as formatted
        """
        start = self.selection.start
        end = self.selection.end

        if start == end:
            return

        # get menutext
        what = menu.text()

        if what == 'C Source':
            pyperclip.copy(self.make_c_array(start, end))
        elif what == 'Python Source':
            pyperclip.copy(self.make_py_array(start, end))
        elif what == 'JS Source':
            pyperclip.copy(self.make_js_array(start, end))
def on_cm_copy_as ( self , menu ) : start = self . selection . start end = self . selection . end if start == end : return # get menutext what = menu . text ( ) if what == 'C Source' : pyperclip . copy ( self . make_c_array ( start , end ) ) elif what == 'Python Source' : pyperclip . copy ( self . make_py_array ( start , end ) ) elif what == 'JS Source' : pyperclip . copy ( self . make_js_array ( start , end ) )