unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dan Anderson <dan@mathjunkies.com>
Subject: Re: Indenting Strings (How to?)
Date: Tue, 30 Dec 2003 03:07:13 GMT	[thread overview]
Message-ID: <m2ad5bdmvy.fsf@syr-24-59-76-83.twcny.rr.com> (raw)
In-Reply-To: barmar-2F921B.12500329122003@netnews.attbi.com

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

  reply	other threads:[~2003-12-30  3:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-29 15:32 Indenting Strings (How to?) Dan Anderson
2003-12-29 17:50 ` Barry Margolin
2003-12-30  3:07   ` Dan Anderson [this message]
2003-12-30  3:49     ` Martin Stone Davis
2003-12-30  3:58       ` Martin Stone Davis

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m2ad5bdmvy.fsf@syr-24-59-76-83.twcny.rr.com \
    --to=dan@mathjunkies.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).