LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   emacs - html-helper-mode- edit template (http://www.linuxquestions.org/questions/programming-9/emacs-html-helper-mode-edit-template-606014/)

flebber 12-11-2007 05:44 AM

emacs - html-helper-mode- edit template
 
Hi hoping there was some emacs users here who might know the answer to this.

I am writing html in emacs, when I start a new *.html file html-helper-mode automatically opens default template
Quote:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title></title>
</head>

<body>
<h1></h1>



<hr>
<address></address>
<!-- hhmts start --> <!-- hhmts end -->
</body> </html>
Does anyone know how to or have a good reference for editing this file so that I can add a few minor things to it.

PS
Is it possible to have both html-helper-mode and sgml-mode load when a *.html file is created or opened ?
Or is there a better mode I can use for xhtml web pages that would cover the same or more functionality and stability ?

flebber 12-12-2007 04:54 PM

Does anyone use emacs much for doing this sort of stuff ?

Tinkster 12-12-2007 06:13 PM

I'd rummage through the inventory of your emacs packages to find it; it's
not part of the "standard emacs". In the default emacs from gnu.org there's
also only 1 combined sgml-html mode to begin with.
/usr/share/emacs/21.4/lisp/textmodes/sgml-mode.el



Cheers,
Tink

ntubski 12-12-2007 10:02 PM

Quote:

Originally Posted by flebber (Post 2986977)
Hi hoping there was some emacs users here who might know the answer to this.

I am writing html in emacs, when I start a new *.html file html-helper-mode automatically opens default template

Does anyone know how to or have a good reference for editing this file so that I can add a few minor things to it.

Not sure why you need to a reference to add a few minor things: just type them in. C-h m gives a mode description which is always handy. A quick google turns up a home page: http://www.nongnu.org/baol-hth/

Quote:

PS
Is it possible to have both html-helper-mode and sgml-mode load when a *.html file is created or opened ?
No, they are both major modes, so they are not written to cooperate with each other (they likely define conflicting behaviour for eg movement commands).

Quote:

Or is there a better mode I can use for xhtml web pages that would cover the same or more functionality and stability ?
see the emacswiki for some possibilities: http://www.emacswiki.org/cgi-bin/wiki/HtmlMode I can't really give much advice this since I hardly ever write html...


All times are GMT -5. The time now is 01:30 PM.