Re: [Zope] ZOPE, Xemacs, html-mode, indentation
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 dtml. (basically I just added dtml-in and a multi tag and dtml-var as a single tag). Then, I set up xemacs to use hm--html-mode for the dtml stuff. To do the indentation with hm--html-mode then, you have to hilight the area you want indented, then hit TAB. Problem solved! And now I have beautifully indented dtml docs!! If anyone wants a copy of what I put in my .emacs for the tag-name-alist. Let me know. On Mon, Jun 05, 2000 at 06:31:41PM -0700, Bob Finch wrote: "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 jiva html-mode Unfortunately, no matter what I do, I can't get it to do jiva it's indentation on anything unless it's actually *started* in the jiva html-mode (ie: I do a new file with a .html extension) 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 work fine. As soon as you add dtml-var standard_html_header at the top, indentation stops working. I guess the fix is to write a dtml DTD for XEmacs html-mode. Has anyone already done this? -- The trouble with a kitten is that When it grows up, it's always a cat -- Ogden Nash. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZOPE, Xemacs, html-mode, indentation
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 work fine. As soon as you add dtml-var standard_html_header at the top, indentation stops working. I guess the fix is to write a dtml DTD for XEmacs html-mode. Has anyone already done this? I tried hacking one up. You can get it from: http://www.zope.org/Members/alburt/dtml_mode/index_html --- Alastair ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZOPE, Xemacs, html-mode, indentation.
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 unless it's actually *started* in the html-mode (ie: I do a new file with a .html extension) So the question is, how do I turn on auto-indent in xemacs for dtml code? Does anyone have a mode specially for this? -- Absence in love is like water upon fire; a little quickens, but much extinguishes it. -- Hannah More ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZOPE, Xemacs, html-mode, indentation.
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-auto-fill -- Skip Montanaro, [EMAIL PROTECTED], http://www.mojam.com/, http://www.musi-cal.com/ "We have become ... the stewards of life's continuity on earth. We did not ask for this role... We may not be suited to it, but here we are." - Stephen Jay Gould ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] ZOPE, Xemacs, html-mode, indentation.
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: [Zope] ZOPE, Xemacs, html-mode, indentation. 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-auto-fill -- Skip Montanaro, [EMAIL PROTECTED], http://www.mojam.com/, http://www.musi-cal.com/ "We have become ... the stewards of life's continuity on earth. We did not ask for this role... We may not be suited to it, but here we are." - Stephen Jay Gould ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
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 like (setq html-mode-hook (function (lambda () (turn-on-auto-fill -- Many aligators will be slain, but the swamp will remain. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZOPE, Xemacs, html-mode, indentation.
No, this just lets you hit tab to indent. HTML mode has a special automatic indentation capability that isn't working here. That's what I am trying to turn on. On Mon, Jun 05, 2000 at 03:32:01PM -0400, Chris McDonough wrote: I don't know about xemacs, but gnu emacs has 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. 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-auto-fill -- Only someone with nothing to be sorry for smiles back at the rear of an elephant. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )