The question is a bit unclear, but in case you did not know you can execute some lines of code in a couple of ways:
a) Select the code in the editor, right-click and select Source Code, Execute Selection (Ctrl+F7)
or
b) Copy the lines to the clipboard and in the interpreter right-click and select Paste & Execute.
The difference between the two approaches is that the second way preserves the lines in the interpreter history of commands.