Bob:
You are 100% correct. I didn't want to write a DTD for dtml (though
this is probably the "right" solution) so instead I went searching for
other options. Here's what I found:
If you use hm--html-mode, there's a variable called:
hm--html-tag-name-alist where I added some definitions for
d
Bob Finch <[EMAIL PROTECTED]> wrote:
> I just ran into the same problem. It appears that XEmacs html-mode
> parses the html in the buffer. If it doesn't parse correctly, the
> indentation stuff doesn't work. To see this, try editing something
> without any dtml in it -- indentation should
> "jiva" == [EMAIL PROTECTED] <[EMAIL PROTECTED]> writes:
jiva> I am using XEmacs with it's html mode to work on some dtml code. I
jiva> can get it to switch to html mode easily for the dtml stuff even
jiva> though I'm not naming my files with .html extensions by doing: M-x
j
Regarding my html-mode-hook suggestion:
>> Nope, didn't work.
It looks like html-mode is actually a refinement of sgml-mode. After
loading it and asking for help on it, I see
Major mode for editing HTML documents.
This is based on PSGML mode, and has a sophisticated SGML parser in
indented-text-mode
>
> M - x indented-text-mode
>
> > From: Skip Montanaro [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 05, 2000 3:28 PM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [Zope] ZOPE, Xemacs, html-mode, & indentation
Nope, didn't work.
On Mon, Jun 05, 2000 at 02:27:52PM -0500, Skip Montanaro wrote:
>
> >> So the question is, how do I turn on auto-indent in xemacs for dtml
> >> code? Does anyone have a mode specially for this?
>
> You should be able to define an html-mode-hook that goes something li
I don't know about xemacs, but gnu emacs has indented-text-mode
M - x indented-text-mode
> -Original Message-
> From: Skip Montanaro [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 05, 2000 3:28 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Z
>> So the question is, how do I turn on auto-indent in xemacs for dtml
>> code? Does anyone have a mode specially for this?
You should be able to define an html-mode-hook that goes something like
(setq html-mode-hook
(function
(lambda ()
(turn-on-a
I am using XEmacs with it's html mode to work on some dtml code. I
can get it to switch to html mode easily for the dtml stuff even
though I'm not naming my files with .html extensions by doing: M-x
html-mode Unfortunately, no matter what I do, I can't get it to do
it's indentation on anything u