all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Indentation for html-mode
@ 2008-04-13 11:23 Jens Teich
  2008-04-13 12:38 ` Lennart Borgman (gmail)
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jens Teich @ 2008-04-13 11:23 UTC (permalink / raw)
  To: help-gnu-emacs

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


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

end of thread, other threads:[~2008-04-13 20:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-04-13 20:32   ` Jens Teich

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.