>>>> "Peter" == Peter Adamek
<peter.adamek(a)utoronto.ca> writes:
Peter> Adrian,
Peter> Thanks for your email. I should be able to take it from
Peter> here. The URL you requested below is:
Peter>
http://www.socha.net/XEmacs/index.html#scrshot
This isn't part of the XEmacs Website, but it's a valuable resource
run by Robin Socha.
Peter> One other question for you. There are two documentation
Peter> files located at
Peter>
http://www.xemacs.org/Documentation/index.html. They are:
Peter> 1) Getting Started With XEmacs (new-users-guide)
Peter> 2) XEmacs Users Manual (xemacs)
Peter> These apparently come in both postscript and PDF, but the
Peter> PDF is not viewable with the regular Adobe Acrobat Reader
Peter> for Windows. Is it a special kind of PDF file or is there
Peter> a problem witht these files. Could you point me to where I
Peter> can find the viewable PDF documents?
These problems have been reported before. Unfortunately nobody has
taken care of this problem yet.
If you have XEmacs installed, you can access these documents via
C-h C-i (Info-query)
xemacs
and
C-h C-i new-users-guide
respectively.
Peter> By the way, what is the difference between the packages:
Peter> hm--html-menus 1.14 HTML editing and
Peter> psgml 1.19 1.19 Validated HTML/SGML editing.
Well, PSGML has a pretty good HTML parser with DTD support and can
find syntax errors in the HTML you write
C-c C-o runs the command sgml-next-trouble-spot
I strongly recommend it. I use it to automatically validate all
website content at http:/xemacs.sourceforge.net
One thing to be aware of with PSGML:
Choose a DTD as the first line of an HTML file with
DTD->Insert DTD->...
and
DTD->Parse DTD
Then you're all set.
You might want to put this in you site-start.el or .emacs:
(setq sgml-custom-dtd
'(("HTML-3"
"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 3.0//EN\">"
sgml-default-dtd-file "~/SGML/HTML-3.ced"
sgml-omittag t sgml-shorttag t)
("HTML-3S"
"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML Strict Level
3//EN\">"
sgml-default-dtd-file "~/SGML/HTML-3S.ced"
sgml-omittag t sgml-shorttag t)
("HTML-3.2 Final"
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2
Final//EN\">"
sgml-default-dtd-file "~/SGML/HTML-3.2.ced"
sgml-omittag t sgml-shorttag t)
;; ("HTML-3.2S Final"
;; "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD Strict HTML 3.2
Final//EN\">"
;; sgml-default-dtd-file "~/SGML/HTML-3.2S.ced"
;; sgml-omittag nil sgml-shorttag nil
;; )
("HTML-4.0 Transitional"
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0
Transitional//EN\">"
sgml-default-dtd-file "~/SGML/HTML4.ced"
sgml-omittag t sgml-shorttag t)
("XHTML-1.0 Strict"
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0
Strict//EN\">"
sgml-default-dtd-file "~/SGML/xhtml1-strict.ced"
sgml-omittag t sgml-shorttag t)
("XHTML-1.0 Transitional"
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0
Transitional//EN\">"
sgml-default-dtd-file "~/SGML/xhtml1-transitional.ced"
sgml-omittag t sgml-shorttag t)
))
(setq html-helper-address-string
(concat
"<A HREF=\"/"
(user-login-name)
".html\">"
(user-full-name)
"</A>"))
(setq html-helper-timestamp-hook
'(lambda ()
;; The trailing four spaces cause html-helper-timestamp-end
;; to be indented correctly (kludge).
(let ((time (current-time-string))
(zone (nth 1 (current-time-zone))))
(insert " <META HTTP-EQUIV=\"Last-modified\"
CONTENT=\""
time " " zone "\">\n")
(insert " <META HTTP-EQUIV=\"Expires\" CONTENT=\""
time " " zone "\">\n "))))
(setq html-helper-htmldtd-version
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2
Final//EN\">\n")
;; Please note the (insert ...) forms below! They keep `template-insert'
;; from running those strings thru `tempo-insert-string-functions' which
;; would, according to my setting of
;; (setq tempo-insert-string-functions '(upcase))
;; `upcase' them (even though) they are no HTML-tags.
(setq html-helper-new-buffer-template
'(
(insert html-helper-htmldtd-version)
"<html>\n"
" <head>\n"
" <title>" (p "Document Title: " title)
"</title>\n"
(insert html-helper-timestamp-start)
(insert html-helper-timestamp-end)
"\n </head>\n"
" <body>\n"
" <h1>" (s title) "</h1>\n"
" <p>\n "
p
"\n </p>\n"
" <hr>\n"
" <address>" (insert html-helper-address-string)
"</address>\n"
(insert (html-helper-return-created-string))
;; $Id and $ need to be kept apart to avoid expansion inside
;; of this file (.emacs, which is also under RCS).
" <p><small>" (insert "$Id")
"$</small></p>" "\n"
(insert
" <!--\n"
" (let (beg result)\n"
" (goto-char (point-min))\n"
" (setq result (sgml-next-trouble-spot))\n"
" (goto-char (point-max))\n"
" (re-search-backward\n"
" \"\\\\s-*</BODY>\")\n"
" (if (string= result \"Ok\")\n"
" (insert \"<SMALL>Compliant with DTD<BR>\\n\")\n"
" (insert \"<SMALL><STRONG>Not</STRONG> compliant with
DTD<BR>\\n\"))\n"
" (setq beg (point))\n"
" (insert html-helper-htmldtd-version)\n"
" (html-quote-region beg (point))\n"
" (insert\n"
" \"<BR>\\naccording to PSGML version \"\n"
" psgml-version \"<BR>\\nrunning under \"\n"
" emacs-version \".</SMALL>\\n\"))\n"
" -->\n")
" </body>\n</html>\n"))
;;;
;;; psgml-edit.el<1.2> has been edited to make use of
;;; tempo-insert-string-functions.
;;;
;;; Adrian Aichner, Teradyne GmbH Munich, Thu., Jul. 11, 1996.
;;;
;;; Changed from '(upcase) to '(downcase) for transition to XML.
(setq tempo-insert-string-functions '(downcase))
;;;
;;; Add hook function atend.
;;;
(add-hook 'sgml-mode-hook
'(lambda ()
(setq sgml-balanced-tag-edit t)
(setq sgml-auto-insert-required-elements t)
(setq sgml-omittag-transparent t)
;;; Redine markup to be uppercase.
;;; (defmacro sgml-general-case (string) (`(upcase (, string))))
(define-key sgml-mode-map "\C-c-" 'sgml-untag-element)
(define-key html-mode-map "\C-c-" 'sgml-untag-element))
t)
Peter> Which one would you recommend for writing and editing HTML code?
Even when you use PSGML, you can also use hm--html-minor-mode together
with it. Either enter it via some psgml hook or enter it manuallly via
M-x hm--html-minor-mode
I only took a short look at hm--html-minor-mode and find the PSGML
context-sensitive menus better.
For one thing hm--html-minor-mode only supports physical markup under
"Formatting Words...". Logical markup should be used instead (strong,
cite, kbd, etc.).
Peter> Thank you again,
Peter> Peter
Peter> I'm using the 21.1 Windows version of XEmacs. I saw on
Peter> your web site that certain users have used XEmacs in HTML
Peter> mode to create web sites. In this mode, XEmacs formats the
Peter> HTML code appropriately (colors and all). According to
Peter> your web site, the mode is called hm--html-minor-mode.
>
> Hello Peter, could you please send me the URL to the documentation you
> refer to?
>
Peter> When I tried invoking this mode on my XEmacs, it told me
Peter> there is no such mode. Is the above HTML mode for XEmacs
>
> To use this mode, please make sure you have following package installed:
>
> hm--html-menus 1.14 HTML editing.
>
> You can check this via Options -> Manage Packages -> List & Install
>
Peter> only supported for non-Windows versions of the software or
Peter> do I need to link in some HTML library? Any help you could
>
> No, and no.
>
Peter> provide would be greatly appreciated. If you could send a
Peter> copy of your .emacs file that you have found to be useful
Peter> in editing HTML code I would really appreciate it.
>
> I used PSGML mode alone.
>
> You will need to install
> psgml 1.19 1.19 Validated HTML/SGML editing.
> to use it.
>
Peter> By the way, does the HTML mode know how to format
Peter> javascript and VBscript embedded within the HTML code?
>
> Don't know.
>
Peter> Thanks in advance,
>
Peter> Peter
>
>> Best regards,
>
>> Adrian
>
>> --
>> Adrian Aichner <adrian(a)xemacs.org>
--
Adrian Aichner <adrian(a)xemacs.org>