Okay I know I've worded the question horribly. We all know to make code visible in a box e.g:
\begin{document}
We have to shift it 4 spaces to the right so that it becomes:
\begin{document}
Is there any way to shift an entire group of text to the right instead of doing it line by line, like highlighting and then pressing the space bar, etc...