* HTML mode: Change words that cause indention
@ 2008-07-04 19:57 Florian.Lindner
2008-07-05 6:14 ` Volkan YAZICI
0 siblings, 1 reply; 4+ messages in thread
From: Florian.Lindner @ 2008-07-04 19:57 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
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 %}.
Is that possible?
BTW: It's the Django template language: http://www.djangoproject.com/documentation/templates/
Thanks,
Florian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HTML mode: Change words that cause indention
2008-07-04 19:57 HTML mode: Change words that cause indention Florian.Lindner
@ 2008-07-05 6:14 ` Volkan YAZICI
2008-07-09 11:48 ` Florian.Lindner
0 siblings, 1 reply; 4+ messages in thread
From: Volkan YAZICI @ 2008-07-05 6:14 UTC (permalink / raw)
To: help-gnu-emacs
On Jul 4, 10:57 pm, Florian.Lind...@xgm.de wrote:
> Hello,
> 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-
mode.
Regards.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HTML mode: Change words that cause indention
2008-07-05 6:14 ` Volkan YAZICI
@ 2008-07-09 11:48 ` Florian.Lindner
2008-07-09 14:11 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 4+ messages in thread
From: Florian.Lindner @ 2008-07-09 11:48 UTC (permalink / raw)
To: help-gnu-emacs
On 5 Jul., 08:14, Volkan YAZICI <volkan.yaz...@gmail.com> wrote:
> On Jul 4, 10:57 pm, Florian.Lind...@xgm.de wrote:
>
> > Hello,
> > 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-
> mode.
Ok, that sound like it is far beyond my knowledge... ;-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HTML mode: Change words that cause indention
2008-07-09 11:48 ` Florian.Lindner
@ 2008-07-09 14:11 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2008-07-09 14:11 UTC (permalink / raw)
To: Florian.Lindner; +Cc: help-gnu-emacs
Florian.Lindner@xgm.de wrote:
> On 5 Jul., 08:14, Volkan YAZICI <volkan.yaz...@gmail.com> wrote:
>> On Jul 4, 10:57 pm, Florian.Lind...@xgm.de wrote:
>>
>>> Hello,
>>> 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-
>> mode.
>
> 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?
http://www.emacswiki.org/cgi-bin/wiki/NxhtmlMode
I think I just corrected a problem with indentation in the latest beta.
(I am waiting for feedback before releasing it.)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-07-09 14:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-04 19:57 HTML mode: Change words that cause indention Florian.Lindner
2008-07-05 6:14 ` Volkan YAZICI
2008-07-09 11:48 ` Florian.Lindner
2008-07-09 14:11 ` Lennart Borgman (gmail)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).