You want to edit text, and for that you need a text editor. There is (easy) native way in OS X to do these kind of text manipulations.
I personally use BBEdit/TextWrangler for these kind of codings. command]
You can also use Automator to create a Service and use sed/regex to do the 'hard' lifting: (and bind a keystroke to this Service)
sed 's/\(^.*\)/\ \ \ \ \1/g':
sed can be used to edit lines of text. In this line sed globally substitutes a match of 'the beginning of a line and everything that comes after it' with '4 spaces and that match'.