Sunday, 9 February 2014

Align Text Both Left and Right on the Same Line in Text Editors

Sometimes we would like to align some text on the line to the left and some on the right. Occasionally we even want three types of alignments on one line: left, centre and right. All of this is easy to accomplish in most text editors by utilizing the TAB functionality.

Here's what you need to do to achieve the desired effect:
  1. Place the cursor at the position on the line where you would like to begin aligning the following text differently.
  2. Press the TAB key.
  3. Now place the cursor just before the tab (you can move the cursor with your mouse or press the LEFT key on your keyboard).
  4. If you would like to centre the text, create a TAB that is centre-aligned. If you would like to align the text on the right, create a TAB that is right justified. Then drag the tab in the ruler all the way to the right until it coincides with the right margin.
That's it! Your text should now have multiple alignments. For instructions on how to create a TAB in your particular text editor you may have to do an Internet search.

No comments:

Post a Comment