Preview defaults to Notepad for .shtml documents

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
Rick
Posts: 5
Joined: Tue Nov 06, 2007 2:09 am
Location: Arizona
Contact:

Preview defaults to Notepad for .shtml documents

Post by Rick »

The hosting company my primary website had been on for 10 years recently went out of business. The website hadn't been updated in almost 7 years, so I've been franticly re-writing it's 30 or so pages.

I used SSI for menus, copywright notice, etc., on the old website.

An .htaccess file that I think was in the root directory contained two lines that made it un-necessary to use the .shtml extension:

AddHandler server-parsed .html
Options +Includes

On the new server, SSI doesn't work without the .shtml extension. What's worse is WeBuilder defaults to notepad for .shtml documents.

Help
bandrej
Posts: 65
Joined: Fri Oct 20, 2006 10:50 am
Location: maribor, slovenia

Post by bandrej »

Options -> Preferences -> Files -> Associations :::> Add SHTML extension

then define WB behavior with this file, under:

Options -> Preferences -> Document Types -> HTML ::::> again, add SHTML

That's it.
to-do: full-screen feature
Rick
Posts: 5
Joined: Tue Nov 06, 2007 2:09 am
Location: Arizona
Contact:

Post by Rick »

It did not work, .shtml documents still open in notepad.
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

even after reloading webuilder?

is .shtml still in the associations list?
Rick
Posts: 5
Joined: Tue Nov 06, 2007 2:09 am
Location: Arizona
Contact:

Post by Rick »

I shut down WeBuilder and re-started it.

.shtml is in the files > associations list.

I'm not sure what I'm supposed to see under Document types > html. It's in the list that starts with <none>, but it's not highlighted in any way.

Regardless, .shtml documents still open in notepad.
bandrej
Posts: 65
Joined: Fri Oct 20, 2006 10:50 am
Location: maribor, slovenia

Post by bandrej »

Open My Computer, then search for a file with shtml extension, right-click it -> Open with -> Choose Default Program

Then from the list, select Webuilder and click on the 'Alway use the selected program to open this kind of file', then Ok.

This should do the trick.
to-do: full-screen feature
Rick
Posts: 5
Joined: Tue Nov 06, 2007 2:09 am
Location: Arizona
Contact:

Post by Rick »

It did not work.

What did work is to change it to open with Internet Explorer.

Thanks
bandrej
Posts: 65
Joined: Fri Oct 20, 2006 10:50 am
Location: maribor, slovenia

Post by bandrej »

Sounds like your Windows have screwed up some registry settings regarding file associations.
to-do: full-screen feature
Rick
Posts: 5
Joined: Tue Nov 06, 2007 2:09 am
Location: Arizona
Contact:

Post by Rick »

IE or Firefox has never had a problem displaying .shtml pages on the internet, just internally stored documents. Regardless of why it happened, that problem is now solved.

Because this is an existing website with search engine traffic I don't want to loose, I'm really concerned about what will happen when a search engine tries to take someone to a .shtml page it expects to have a .html extension. The windows server the website is on now doesn't seem to be able to parse .shtml to .html.

I may have to find a replacement language to link the menus and copyright notice for SSI on about 30 pages on my website.
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

rick, php includes couldn't be easier and you are not confined to apache. IIS might be able to deal with ssi but I don't think so - not natively anyway.

Code: Select all

<?php include("header.php") ?>

your content

<?php include('menu.php") ?>

more content

<?php include("footer.php") ?>
ps. The reason your browser can't display local .shtml files is because .shtml requires a web server. there are ways around it, but that's the general idea. the same will be true of your local php files - they need to be served up by a webserver for your browser to understand them. Webuilder comes with a server for this reason.
Post Reply