[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Indentation for html-mode
From: |
Chris McMahan |
Subject: |
Re: Indentation for html-mode |
Date: |
Sun, 13 Apr 2008 14:54:22 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) |
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
=================================================