This is achieved by editing in Column Mode. Now, I'm unsure if Word Processors have column mode. Many Text Editors have it. But I don't think Microsoft Word does, for instance. However you can create text regions. In Word they are called Text Boxes and are accessible from the Insert Menu. This will allow you to create a region for text you wish to freely move around the page.
2) To be able to move a whole text left or right. Like a piece of code moving right/left. By moving right left I mean entering/deleting spaces infront of every line in a selected piece of code