unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dan Anderson <dan@mathjunkies.com>
Subject: Indenting Strings (How to?)
Date: Mon, 29 Dec 2003 15:32:31 GMT	[thread overview]
Message-ID: <m2r7ynvdv4.fsf@syr-24-59-76-83.twcny.rr.com> (raw)


        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.

Thanks in advance,

Dan

             reply	other threads:[~2003-12-29 15:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-29 15:32 Dan Anderson [this message]
2003-12-29 17:50 ` Indenting Strings (How to?) Barry Margolin
2003-12-30  3:07   ` Dan Anderson
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=m2r7ynvdv4.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).