View Full Version : Vista webdev nightmare
nomadsoul
02-28-2008, 11:27 PM
Hi all,
Apparently, you cannot just open notepad, do some html code and save it as an html file. Seems that it insists on saving it as .html.txt
Example vistasucks.html saves as vistasucks.html.txt no matter what I do.
Does anyone know what to do here?
I'm forced to use it right now. I am in China teaching and my Toshiba laptop seems to be the only thing I can connect with right now. I just want to make a webpage for my students.
Any help greatly appreciated.
I can on vista here so I think you're encountering a misconfiguration of some sort and not stock vista behavior.
Running Microsoft Vista 32-bit OS. Open notepad. Type some html. File -> Save and save as test.html and the file shows in explorer as test.html and is associated with firefox as an html document.
Doing a google search I see someone said to put the "filename.html" in quotes to not add the .txt extension; I can't recreate the problem you're seeing, but it does work either way here so it might be something to try.
--the only thing which really irks me are computers set to hide the file extension so you end up getting files named test.jpg.jpg by people who don't realize explorer was set to hide extensions on their computer!
I guess if it's a temporary computer I can't suggest a nice program like editplus :)
You should be able to rename the file, after saving, by accessing it directory with Windows Explorer or at worse upload the named .txt file and then rename it on the server...
-Bob
frankc
02-29-2008, 11:52 AM
When you save the file, add the .htm/.html extension to the filename, and in the dropdown box for "Save as type" select All Files.
nomadsoul
02-29-2008, 11:13 PM
I tried the quote thing and get the error that I can't use quotes and slashes etc..
Tried wordpad too. It shows some nasty parse error in the browser window when I try some basic html.
I guess I could do everything on the fq server but I don't always have a connection.
Thanks
nomadsoul
02-29-2008, 11:32 PM
Here's what's happening now: I open a notepad document and it now automatically saves as an .html file (file ext not showing) and it is opening in a browser but the html code I typed is showing as text in the browser
<html>
<body>
test
</body>
</html>
I promise I did not make any config changes anywhere as I can't even find where this is done in vista. I am going to end up using my xp laptop and doing the thumb drive thing I think. I have desktop harddrives I brought with me, one is fedora and the other is xp but I've not had the time to build a box for them yet.
McDuff
03-01-2008, 05:08 AM
........Open notepad........
Notepad is known to be not the best to work with, certainly when saving files, some extensions it messes up up or does not want..
You could consider notepad plus, It is open-source, free, and really good; it does what you want :clapper:, not what MS thinks that maybe you should want but is wrong anyway :eeww:.
Main page is :http://notepad-plus.sourceforge.net/uk/site.htm
Download page: http://sourceforge.net/project/showfiles.php?group_id=95717&package_id=102072
Go for the executable file (installer. exe)
Success
Mandi
03-01-2008, 08:40 AM
Note Tab Light (http://www.notetab.com/ntl.php) is another freeware option for text editing - I use it exclusively for text files, and it does handle HTML (and all scripting) smoothly.
Notepad is known to be not the best to work with, certainly when saving files, some extensions it messes up up or does not want..
I tried everything I could think of to make it mess up on the vista computer here, and I could not. Whatever extension I typed on the file was what it saved as. :dunno:
(I do rarely use notepad however as I like edit plus much better, even for the simple handy file browser window pane to the left that lets me quickly work through a directory of script includes for example, not to mention the better find and replace, etc, etc.) But I think there must be something awfully wrong with the machine in question.
I would open Explorer, click Organize, Folder Options and uncheck the "hide file extensions for known file types" for the folder where it's saved, or apply to all folders (I don't know how that option is useful or why by default it's checked as it sure seems to cause more confusion than helping anyone.)
nomadsoul
03-09-2008, 03:23 AM
Thanks for the replies. Sorry for my delay in answering. It is a combination of bad bandwidth and being busy.
I will try all of these
vBulletin® v3.6.8, Copyright ©2000-2010, Jelsoft Enterprises Ltd.