Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6606839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:26:19+00:00 2026-05-25T19:26:19+00:00

The only editor I’ve ever used that supports this (I’m sure lots do, however)

  • 0

The only editor I’ve ever used that supports this (I’m sure lots do, however) is Sublime Text 2, but hopefully emacs has a trick up its sleeve too. Some classes I work on that have a fairly declarative syntax look cleaner if the source is kept columnized. The problem comes in when a new row increases the length of a column by a space or two… you then have to work through each row re-aligning it.

A screenshot probably clarifies what I’m getting at:

Columnized text out of alignment

Here I’ve added a row in which one if its columns extends further than the other columns, so I’d like to realign it all again. Ordinarily I’d just repeat-cycle my fingers around the arrows and the space bar until I’ve re-aligned everything row-by-row, but it’d be good if there was a way to just select a rectangular area and force text non-whitespace parts of that area to fall into alignment.

Is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:26:19+00:00Added an answer on May 25, 2026 at 7:26 pm

    Rather than using rectangles, you could use align-regexp. Select the area then do:

    C-u M-x align-regexp RET ,\(\s-*\) RET 1 RET 1 RET y

    If you do this a lot, make a function:

    (defun my-align-after-commas (beg end)
      (interactive "r")
      (align-regexp beg end ",\\(\\s-*\\)" 1 1 t))
    

    Then select the area and M-x my-align-after-commas

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this editor is horizontal http://tinymce.moxiecode.com/examples/simple.php and I seem to find only horizonal editors, has
Are there any editors that can edit multi-gigabyte text files, perhaps by only loading
Simple, I want to build an editor that only accept numbers, as I do,
Goal, is to extract the content for the CKEDITOR Text Editor, and then only
A popular text editor has the following find in files feature that opens in
I am looking for a Silverlight text editor control that provides XML syntax highlighting
I set my editor use the whitespace only, but I got problem with the
If I have an informational property that provides an editor only, in the property
I'm at the time beginning the development of a simple hex editor(that only reads
The only error I ever get is SIGABRT in main. This is getting incredibly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.