Editing HTM files in Notepad

They have: 2 posts

Joined: Aug 2009

Hello.

I created a basic website (just a couple of pages of text and an image or two) in Dreamweaver/Fireworks 8. Everything looks fine on my PC. I emailed the files to myself at work so that I could continue adding new pages.

I don't have Dreamweaver at work so I've been editing the pages in Notepad. However, when I email the files back home, some of them won't display (all I get is a blank page) and "Restricted Sites" appears in the status bar.

I haven't done anything complex. It's just a page with a table and some text in it. Does anyone have any idea why this is happening? (Also, the site will not be published on the Internet - it's just going to be viewed on my PC.)

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Are you using Windows? Which version?

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

IE will for some reason block tables from being viewed when you are viewing them locally (ie right off your hard drive) instead of off of a web server.

I could never figure out what it is protecting in a table... but it does do that.

Were you able to view the pages locally before you e-mailed them back and forth? It may be an issue with proper structuring the file that is tripping up IE.

If you still have the two versions, one that will open, and one that will not, try comparing them with a utility such as this one, which is free and does a great job highlighting differences:

http://www.prestosoft.com/edp_examdiff.asp

-Greg

They have: 2 posts

Joined: Aug 2009

Thanks for replies.

I'm using IE7.

And yes, I was able to view the pages normally when I created them initially. The restricted sites thing only happened after I emailed them to myself at work, edited one or two of them in Notepad and emailed them back home.

I have to turn my security settings for "Restricted Sites" down in order to view the page, which is less than ideal.

I think I still have an old version of one of the pages that views fine in IE7 so I'll try to compare them as you suggest.

greg's picture

He has: 1,581 posts

Joined: Nov 2005

A slight sidestep to your main issue...

Correct me if I'm wrong ... but doesn't Notepad have a default char encoding of ANSI, and cannot be changed to others, utf-8 for example?

Besides, I'd be lost without syntax highlighting. Sure it's possible without it for simple HTML code, but once PHP or even complex nested tables in HTML comes into play syntax highlighting makes it so much easier.

I used to use Notepad++ when I used Windows. You could try that.

They have: 2 posts

Joined: Aug 2009

are you still can see code if you open the file in notepad if notepad is also empty then, there can be two reason one you haven't transferred file correctly or you edit file in another environment and now trying to open in other environment...........
[Personal links removed]

They have: 3 posts

Joined: Sep 2009

Hi
I had same kind of problem. But i had environment problem. Basically when i sent HTML files to my friend is transferred into Dream viewer so the HTML files changed to that environment. hope you solve that problem with this tips.
Good Luck

PHPonly's picture

They have: 13 posts

Joined: Apr 2009

I think is a problem with browser comparability.

He has: 629 posts

Joined: May 2007

I suggest you load a USB stick with a standalone editor like Notepad++. You can then set it up the way you want, and use the same editor at home and at work:

http://portableapps.com/
http://www.portablefreeware.com/
http://standalone.atspace.org/applications.html
http://tinyapps.org/
http://op111.net/misc/usbapps

Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;

They have: 20 posts

Joined: Oct 2009

I'm not certain, but you may be coming up against issues with the "Mark of the Web" security lockdown that Microsoft introduced on HTML files. Take a look at this article:
http://msdn.microsoft.com/en-us/library/ms537628%28VS.85%29.aspx

It could be that because you emailed the file, it is locked down in the "Internet Security Zone", and thus Windows is restricted you from viewing the content properly.

They have: 3 posts

Joined: Nov 2009

I user textpad for all my coding. I find it much easier than notepad. What host are you using?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.