From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Jens Teich <spamtrap@jensteich.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Indentation for html-mode
Date: Sun, 13 Apr 2008 14:38:01 +0200 [thread overview]
Message-ID: <4801FEA9.3020109@gmail.com> (raw)
In-Reply-To: <m23apqj8wx.fsf@jensteich.de>
Jens Teich wrote:
> 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?
It looks like a job for the template library. Doesn't it provide indenting?
next prev parent reply other threads:[~2008-04-13 12:38 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) [this message]
[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
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=4801FEA9.3020109@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=spamtrap@jensteich.de \
/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.