How to highlight rectangles of text?
January 5, 2009 1:26 PM
Subscribe
In a monospace text editor, how can I highlight a bounded, rectangular area?
I want to use my mouse (or keyboard) to drag over a few columns, then down several rows, selecting only what is within these bounds. Normally when I do this, scrolling down will highlight all the text on rows between the start and stop points. I want to be able to highlight an entire column of data and press delete, having the text on each row shift left the given amount. My specific application is manipulating aligned tables of data in TeXnicCenter for publication.
Is this where I need to learn emacs/vim?
posted by casaubon to computers & internet (6 comments total)
Well, you don't need to, but yes, Emacs can do that. You would put your cursor at one corner of the rectangular region you want to delete, set the mark with C-Space, move the cursor to the diagonally opposite corner of the rectangular region, and hit C-x r k.
posted by letourneau at 1:32 PM on January 5