unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Need help customizing "TAB" for HTML
@ 2007-01-26  0:21 Angela Bellavance
  0 siblings, 0 replies; 5+ messages in thread
From: Angela Bellavance @ 2007-01-26  0:21 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-27  1:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2007-01-26  0:21 Angela Bellavance

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).