Editing HTM files in Notepad
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 posted this at 13:35 — 18th August 2009.
She has: 11,421 posts
Joined: Jun 1999
Are you using Windows? Which version?
Greg K posted this at 15:56 — 18th August 2009.
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
JabbaKane posted this at 11:06 — 19th August 2009.
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 posted this at 16:19 — 18th August 2009.
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.
mortjony posted this at 07:20 — 26th August 2009.
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]
Isagenix - Isogenics
denisjhon posted this at 05:17 — 11th September 2009.
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 posted this at 04:30 — 25th October 2009.
They have: 13 posts
Joined: Apr 2009
I think is a problem with browser comparability.
webwiz posted this at 03:32 — 26th October 2009.
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;
Daryll1 posted this at 16:24 — 31st October 2009.
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.
awheeler posted this at 21:50 — 27th November 2009.
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.