From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Indenting Strings (How to?) Date: Mon, 29 Dec 2003 17:50:02 GMT Organization: Looking for work Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1072720758 3951 80.91.224.253 (29 Dec 2003 17:59:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Dec 2003 17:59:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 29 18:59:14 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 1Ab1fc-0004hS-00 for ; Mon, 29 Dec 2003 18:59:12 +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 1Ab2d3-0001ms-Nl for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Dec 2003 14:00:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!elnk-pas-nf1!elnk-nf2-pas!newsfeed.earthlink.net!attbi_feed3!attbi.com!attbi_s02.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.1 (PPC) X-Copies-To: never Original-Lines: 20 Original-NNTP-Posting-Host: 24.34.109.233 Original-X-Complaints-To: abuse@comcast.net Original-X-Trace: attbi_s02 1072720202 24.34.109.233 (Mon, 29 Dec 2003 17:50:02 GMT) Original-NNTP-Posting-Date: Mon, 29 Dec 2003 17:50:02 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:119676 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:15618 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15618 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. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA