|
From: | Jens Teich |
Subject: | Indentation for html-mode |
Date: | Sun, 13 Apr 2008 13:23:10 +0200 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (darwin) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |