[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Indenting Strings (How to?)
From: |
Dan Anderson |
Subject: |
Re: Indenting Strings (How to?) |
Date: |
Tue, 30 Dec 2003 03:07:13 GMT |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Barry Margolin <barmar@alum.mit.edu> writes:
> In article <m2r7ynvdv4.fsf@syr-24-59-76-83.twcny.rr.com>,
> Dan Anderson <dan@mathjunkies.com> wrote:
>
> > A lot of times when I'm coding I'll have a very long string or
> > comments which is some other kind of code (i.e. HTML or CSS embedded
> > in a Perl CGI script) or is text. Many times I'll try to keep the
> > indentation neat, but pressing tab in a string (or comments) doesn't
> > do anything (in CPerl mode, PHP mode, or any other mode). This means
> > that I end up having to space over manually (a royal PITA).
> >
> > Is there a good way to tell emacs to either treat all comments
> > and strings as normal text (i.e so I can get basic tabbing and
> > justification), or (even better), to set rules concerning how to treat
> > comments and strings.
>
> Type C-q TAB to insert a literal TAB character.
Thanks for trying to help but this is not quite what I want.
I want emacs to automatically tab my code and keep it neat and orderly
like it does outside of comments and strings.
-Dan