default file extension for HTML

Discuss the word processor
Post Reply
rgminutillo
Posts: 3
Joined: Mon Dec 31, 2007 3:54 pm

default file extension for HTML

Post by rgminutillo »

Is there any way (short of recompiling) to change the default file extension for saving HTML files in OpenOffice. I've always used plain old 'htm' and I have to change it every time, since OO only recognizes 'html.' Thanks.
User avatar
floris v
Volunteer
Posts: 4638
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: default file extension for HTML

Post by floris v »

I don't think there is. No need for it, either, because you really shouldn't edit html with Writer. There are many good html editors that are better suited for the job.
LibreOffice 25.8.4.2 on Ubuntu Linux
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
foxcole
Volunteer
Posts: 1507
Joined: Mon Oct 08, 2007 1:31 am
Location: Minneapolis, Minnesota

Re: default file extension for HTML

Post by foxcole »

rgminutillo wrote:Is there any way (short of recompiling) to change the default file extension for saving HTML files in OpenOffice. I've always used plain old 'htm' and I have to change it every time, since OO only recognizes 'html.' Thanks.
Please read the Survival Guide to the forum (there's a link in my sig line below). On my system, the automatic file extension IS .html, but I can't say whether that has any bearing on your situation. The OS version and OOo version you're using are always most vital when reporting a problem. (You might want to add it to your sig line, like I did; then you won't have to retype it each time.)

That aside, you might want to consider KompoZer (Nvu version) for HTML. It's open source, very easy to use, it's designed specifically for the purpose, and it creates much cleaner, leaner HTML files than any word processor could do.
http://www.kompozer.net/
Or try the portable version here (runs on a USB flash drive, needs no installation):
http://portableapps.com/news/2007-12-05 ... revision_2
Cheers!
---Fox

OOo 3.2.0 Portable, Windows 7 Home Premium 64-bit
rgminutillo
Posts: 3
Joined: Mon Dec 31, 2007 3:54 pm

Re: default file extension for HTML

Post by rgminutillo »

foxcole wrote: Please read the Survival Guide to the forum (there's a link in my sig line below).
OK, sorry, Windows Vista with Oo 2.3. But I don't need to be redirected to another editor, I'm simply asking a question about this editor.

I'm expecting that the answer to my question is 'no, you can't,' and I'm expecting that means that my question will generate a lot of 'why do you want to do that' type answers. But who knows.

Thanks.

RGM
User avatar
foxcole
Volunteer
Posts: 1507
Joined: Mon Oct 08, 2007 1:31 am
Location: Minneapolis, Minnesota

Re: default file extension for HTML

Post by foxcole »

[deleted... something wrong with edit]
Last edited by foxcole on Mon Dec 31, 2007 7:01 pm, edited 1 time in total.
Cheers!
---Fox

OOo 3.2.0 Portable, Windows 7 Home Premium 64-bit
User avatar
foxcole
Volunteer
Posts: 1507
Joined: Mon Oct 08, 2007 1:31 am
Location: Minneapolis, Minnesota

Re: default file extension for HTML

Post by foxcole »

rgminutillo wrote:OK, sorry, Windows Vista with Oo 2.3.
Thanks, that helps.
rgminutillo wrote:But I don't need to be redirected to another editor, I'm simply asking a question about this editor.
Well, I noted that mine DOES default to .html and I'm using the same version you're using, so I wonder if it's not an OOo issue, but a setting in your OS. Not having Vista, I'm not sure I can direct you to it... I can't find it in XP at the moment, anyway. -- So, just to be clear, when you choose Save As and choose the HTML option, the extension you see there is .htm and not .html?

I'll repeat again, however, that I do not recommend using Writer or any other word processor for editing HTML. Even if you find it convenient, the people who have to load up those fat, convoluted web pages might not. Please reconsider getting the right tool for the job... a hammer instead of a sledgehammer to drive the nail.
rgminutillo wrote:and I'm expecting that means that my question will generate a lot of 'why do you want to do that' type answers
Not from anyone who knows anything about html. Htm is MS specific, html is universal. It's an extremely reasonable thing to want.
Cheers!
---Fox

OOo 3.2.0 Portable, Windows 7 Home Premium 64-bit
User avatar
floris v
Volunteer
Posts: 4638
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: default file extension for HTML

Post by floris v »

.htm is the extension that was introduced by MS because Windows didn't at first support extensions with four letters. Unix and its derivatives have been using .html from the start. To me that is a perfectly good reason to be content with .html.
LibreOffice 25.8.4.2 on Ubuntu Linux
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
Dave
Posts: 1011
Joined: Sun Dec 23, 2007 6:53 pm

Re: default file extension for HTML

Post by Dave »

rgminutillo wrote: I'm expecting that the answer to my question is 'no, you can't,' and I'm expecting that means that my question will generate a lot of 'why do you want to do that' type answers. But who knows.
I'll bite: Why do you want to do that? ...especially with such powerful [free] ...and frankly much better... alternatives and such a powerful OS that enables ease of use through multitasking.

David.
rgminutillo
Posts: 3
Joined: Mon Dec 31, 2007 3:54 pm

Re: default file extension for HTML

Post by rgminutillo »

David Wrote:
I'll bite: Why do you want to do that? ...especially with such powerful [free] ...and frankly much better... alternatives and such a powerful OS that enables ease of use through multitasking.
It's just that I have a lot of files on a particular site that are all .htm. I want to be consistent, and I'd rather not change all of my current files to html.

I'm using some Oo macros to prepare these files from ordinary docs, macros which are replacing some venerable XyWrite/NotaBene macros. I'd prefer that the result of the macros be a converted doc with an .htm extension, and I';d prefer not to have to overwrite and force the file extension. So it's nothing earth shattering.

RGM
Post Reply