LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-11-2007, 05:44 AM   #1
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: Slackware 14.1
Posts: 393

Rep: Reputation: 30
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 ?

Last edited by flebber; 12-11-2007 at 05:52 AM.
 
Old 12-12-2007, 04:54 PM   #2
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: Slackware 14.1
Posts: 393

Original Poster
Rep: Reputation: 30
Does anyone use emacs much for doing this sort of stuff ?
 
Old 12-12-2007, 06:13 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
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
 
Old 12-12-2007, 10:02 PM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,495

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Quote:
Originally Posted by flebber View Post
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd not running after installing Apache::DBI and HTML::Template harisgulzar Linux - Newbie 1 10-23-2007 07:38 AM
defining an array in html template to be used by php mohtasham1983 Programming 2 01-28-2006 04:23 PM
Can I watch html pages in text mode (e.g. with the help of Emacs, etc)? kornerr Linux - General 6 03-01-2005 10:30 AM
How Can I edit files that emacs won't let me? MDBlueIce Linux - Newbie 2 08-19-2004 08:37 PM
HTML::Template smalter Programming 0 06-14-2001 10:41 AM


All times are GMT -5. The time now is 10:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration