all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris McMahan <first_initiallastname@one.dot.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Indentation for html-mode
Date: Sun, 13 Apr 2008 14:54:22 -0400	[thread overview]
Message-ID: <uwsn1fuw1.fsf@one.dot.net> (raw)
In-Reply-To: m23apqj8wx.fsf@jensteich.de


I think the current mode is behaving correctly. The indentation is to
reflect which elements are parents and children in this case.
Indenting the <tr> tag after the comments would imply to me that the
<tr> is a child of the comment, which in turn is a child of the
<table> tag.

Are you sure you want the comments indented like you described?

- Chris


Jens Teich <spamtrap@jensteich.de> writes:

> Example from Edi Weitz' Lisp package HTML-Template
> (http://weitz.de/html-template/):
>
> <table border=1>
>   <!-- TMPL_LOOP rows -->
>     <tr>
>       <!-- TMPL_LOOP cols -->
>         <!-- TMPL_IF colorful-style -->
>           <td align="right" bgcolor="pink"><!-- TMPL_VAR content --></td>
>         <!-- TMPL_ELSE -->
>           <td align="right" ><!-- TMPL_VAR content --></td>
>         <!-- /TMPL_IF -->
>       <!-- /TMPL_LOOP -->
>     </tr>
>   <!-- /TMPL_LOOP -->
> </table>
>
> is indented in html-mode
>
> <html>
>   <table border=1>
>     <!-- TMPL_LOOP rows -->
>     <tr>
>       <!-- TMPL_LOOP cols -->
>       <!-- TMPL_IF colorful-style -->
>       <td align="right" bgcolor="lime"><!-- TMPL_VAR content --></td>
>       <!-- TMPL_ELSE -->
>       <td align="right" ><!-- TMPL_VAR content --></td>
>       <!-- /TMPL_IF -->
>       <!-- /TMPL_LOOP -->
>     </tr>
>     <!-- /TMPL_LOOP -->
>   </table>
> </html>
>
> because the comment-like tags "<!-- TMPL ..." are unknown. How do I
> teach html-mode to recognize their special meaning?
>
> Jens

-- 
     (.   .)
  =ooO=(_)=Ooo=====================================
  Chris McMahan | first_initiallastname@one.dot.net
  =================================================


  parent reply	other threads:[~2008-04-13 18:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-13 11:23 Indentation for html-mode Jens Teich
2008-04-13 12:38 ` Lennart Borgman (gmail)
     [not found] ` <mailman.10322.1208090292.18990.help-gnu-emacs@gnu.org>
2008-04-13 17:32   ` Jens Teich
2008-04-13 20:44     ` Lennart Borgman (gmail)
2008-04-13 18:54 ` Chris McMahan [this message]
2008-04-13 20:32   ` Jens Teich

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uwsn1fuw1.fsf@one.dot.net \
    --to=first_initiallastname@one.dot.net \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.