From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Anderson Newsgroups: gmane.emacs.help Subject: Re: Indenting Strings (How to?) Date: Tue, 30 Dec 2003 03:07:13 GMT Organization: Mathjunkies.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1072754139 20779 80.91.224.253 (30 Dec 2003 03:15:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2003 03:15:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 30 04:15:35 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AbAM3-0005dO-00 for ; Tue, 30 Dec 2003 04:15:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AbBIO-0007Pn-Dh for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Dec 2003 23:15:52 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 24.59.76.83 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyroc.rr.com 1072753633 24.59.76.83 (Mon, 29 Dec 2003 22:07:13 EST) Original-NNTP-Posting-Date: Mon, 29 Dec 2003 22:07:13 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:119684 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15626 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15626 Barry Margolin writes: > In article , > Dan Anderson 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