all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Code alignment
Date: Fri, 25 Aug 2006 14:26:59 +0200	[thread overview]
Message-ID: <A93ABC9F-FF45-4471-BC3C-71D05F715FA9@Web.DE> (raw)
In-Reply-To: <B0418CC3E025F549AEBD69058442E3F0019E2F48@abcam-uk-mail.abcam.com>


Am 25.08.2006 um 12:24 schrieb Ewen Cartwright:

> formatting code like:
>
>   <cfset var intSupplierID = 0>
>   <cfset var structSupplierInfo = 0>
>   <cfset var intAbID = getAbID(arguments.intStockID)>
>
> as:
>
>   <cfset var intSupplierID      = 0>
>   <cfset var structSupplierInfo = 0>
>   <cfset var intAbID            = getAbID(arguments.intStockID)>

One simple way to achieve 'right side alignment' works by positioning  
the equals sign in some column and continue to write. In the next  
line press TAB and the cursor should advance to the next column of  
the line above. I've used it in text-mode, but I cannot exactly  
remember whether it worked in programming modes. In some (shell for  
example) a TAB is mis-interpreted as positioning the left most word ...

This "fails" a bit when the line above has some words spread all over  
it, but in the end a few TABs lead to the look you wish to have.

--
Greetings

   Pete

"Programming today is a race between software engineers striving to  
build bigger and better idiot-proof programs, and the Universe trying  
to produce bigger and better idiots. So far, the Universe is winning."
                                                -- Rich Cook

  reply	other threads:[~2006-08-25 12:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-24 22:32 url links to open from emacs Gary Wessle
2006-08-24 23:17 ` David Hansen
2006-08-25  5:41 ` Tim X
2006-08-25 10:24   ` Code alignment Ewen Cartwright
2006-08-25 12:26     ` Peter Dyballa [this message]
2006-08-25 14:05     ` Jim Ottaway
2006-08-25 14:28       ` Ewen Cartwright

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A93ABC9F-FF45-4471-BC3C-71D05F715FA9@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.