From: Barry Margolin <barmar@alum.mit.edu>
Subject: Re: Indenting Strings (How to?)
Date: Mon, 29 Dec 2003 17:50:02 GMT [thread overview]
Message-ID: <barmar-2F921B.12500329122003@netnews.attbi.com> (raw)
In-Reply-To: m2r7ynvdv4.fsf@syr-24-59-76-83.twcny.rr.com
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.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
next prev parent reply other threads:[~2003-12-29 17:50 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 [this message]
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=barmar-2F921B.12500329122003@netnews.attbi.com \
--to=barmar@alum.mit.edu \
/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).