Yes, you highlight the code section you want to copy (by dragging the mouse over the lines of code) and then you right click to select "save code snippet to disk". Then in your other program you will right click again to load the code snippet from disk and paste it into your new program.
_________________________
"If you don't know what you're doing, do it neatly..."