[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTML mode: Change words that cause indention

From: Lennart Borgman (gmail)
Subject: Re: HTML mode: Change words that cause indention
Date: Wed, 09 Jul 2008 16:11:57 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

address@hidden wrote:
On 5 Jul., 08:14, Volkan YAZICI <address@hidden> wrote:
On Jul 4, 10:57 pm, address@hidden wrote:

I'm using a simple template language that is embedded in HTML. Can I
change the words that cause an indention in Emacs HTML mode? For
example: indent after {% for whatever in whatever %} and unindent {%
endfor %}.
See `sgml-indent-line' and `sgml-calculate-indent' functions in lisp/
textmodes/sgml-mode.el in the emacs source tree. Also, a rough look at
the whole of the sgml-mode.el will give your a clear idea. You can add
your customized indentation routines as a minor mode hooked into sgml-

Ok, that sound like it is far beyond my knowledge... ;-)

Hi Florian,

Did I tell you before to try nXhtml? It has support for template languages, but I am not sure your template language is there yet. What language are you using?

I think I just corrected a problem with indentation in the latest beta. (I am waiting for feedback before releasing it.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]