1. A method for code editing, comprising: copying a section of text from a source program text; providing source context information for the copied section of text; pasting the copied section of text to a destination program text, including: defining the pasted text as separate from the destination program text; carrying out editing to conform variables of the pasted text to the variables of the destination program text; and integrating the pasted text into the destination program text.