Social Icons

Pages

Friday, 7 September 2012

Set Line width in text file.

Some time you may need to restrict width of a line in a text file.
Although IDE like Eclipse and Net Beans already provide such facilities.
But you can use notepad++ in much easy way to do this task.
Here are the details to do that:
Make sure that you have TextFx plugin for Notepad++. If you don't have then download it.

  1. Go to Settings -> Preferences... -> Editing -> Show vertical edge
  2. Set the "Number of Columns" value. This will show you a vertical line on screen. 
  3. Select the text (make sure file is open :)) whose width you want to set. 
  4. Than go to TextFX Edit >> ReWrap text to (Clipboard or 72) width. This will set width to 72 by default. 
  5. If you want set specific width than write that width or number(say 80) anywhere and copy it and remove it. 
  6. Than again go to TextFX Edit >> ReWrap text to (Clipboard or 72) width. This time it will set width of selected text to 80.

No comments:

Post a Comment

 

Contact Us

info@intellozene.com

Our Website:
www.intellozene.com