Create function for evaluation code in a visual selection.