unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Angela Bellavance <bellavan@fnal.gov>
To: help-gnu-emacs@gnu.org
Subject: Need help customizing "TAB" for HTML
Date: Thu, 25 Jan 2007 18:21:07 -0600	[thread overview]
Message-ID: <45B94973.9060102@fnal.gov> (raw)

Hello,

I am using emacs to create HTML documents and am getting frustrated with 
the default settings for TAB. When I type TAB to indent a line, it 
always seems to add at least two spaces more than the indent on the 
previous line. This occurs even when the previous line contains only one 
tag that does not have a matching closing tag. I would prefer that TAB 
would line up under the start of the previous line unless I have left a 
tag open. Ideally this would happen even if I manually adjust where the 
previous line is indented to.

Here's an example. Here's what it looks like when I use the default TAB 
in HTML-mode on the following text:

<html>
   <head>
   </head>
   <body bgcolor="#ffff99">
     <h1>Shift Guide</h1>
       <i>Most Recent Update:</i><br>
         <i>$Author: bellavan $</i><br>
           <i>$Revision: 1.59 $</i><br>

I would like it to look like this:

<html>
   <head>
   </head>
   <body bgcolor="#ffff99">
     <h1>CDF SAM Shift Guide</h1>
     <i>Most Recent Update:</i><br>
     <i>$Author: bellavan $</i><br>
     <i>$Revision: 1.59 $</i><br>

Or even better, this:

<html>
<head>
</head>
<body bgcolor="#ffff99">
   <h1>CDF SAM Shift Guide</h1>
   <i>Most Recent Update:</i><br>
   <i>$Author: bellavan $</i><br>
   <i>$Revision: 1.59 $</i><br>

where I have manually moved the tag "<head>" back to the beginning of 
the line and used TAB to align the rest of the lines.

Does anyone have any suggestions?

Thanks!
Angela

             reply	other threads:[~2007-01-26  0:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-26  0:21 Angela Bellavance [this message]
     [not found] <mailman.3610.1169770885.2155.help-gnu-emacs@gnu.org>
2007-01-26  5:14 ` Need help customizing "TAB" for HTML Stefan Monnier
2007-01-26 20:39   ` Angela Bellavance
2007-01-27  1:20     ` Stefan Monnier
2007-01-27  1:47     ` David Hansen

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=45B94973.9060102@fnal.gov \
    --to=bellavan@fnal.gov \
    --cc=help-gnu-emacs@gnu.org \
    /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).