Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > IE7 on Vista: File extension stripped when using View Source

Reply
Thread Tools Display Modes

IE7 on Vista: File extension stripped when using View Source

 
 
Jon Davis
Guest
Posts: n/a

 
      06-20-2007
I just set up Windows Vista x64 edition and am using Internet Explorer
32-bit and configured the registry to use an alternate text editor to be the
View Source editor.

I'm finding that the file extension is being stripped when executing View
Source from the browser. So the text editor keeps pulling it up in plain
text rather than with HTML color coding. Since my text editor is Visual
Studio, which I like to use because I can click on the Reformat button to
"pretty" up the source code instantly, opening up the file without the
extension disables such functionality.

This seems to be behavior specific to Windows Vista. I had IE7 running on
Windows Server 2003 and didn't have this problem; when I executed View
Source it always retained the file extension so my View Source editor always
saw .aspx files as .aspx rather than extensionless.

Is there a way to restore the file type?

I'd even be willing to go so far as to build my own EXE to
copy-and-rename-the-file-and-open-it-in-my-editor, but it would need to
otherwise know the MIME type (no sense in renaming a JPEG file to have an
..html extension!), and I don't want to actually read the file's contents to
accomplish that (too hard and flakey; any file can be malformatted).

Thanks,
Jon




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista sort by file extension FBfarm Windows Vista File Management 10 02-01-2009 03:45 AM
Re: Microsofts 'academic' view of Open Source .. Moshe Goldfarb Windows Vista General Discussion 0 04-15-2008 12:59 PM
How to see and change file extension in vista ? fniles Windows Vista General Discussion 4 04-09-2008 06:16 PM
Favorites and View Source Charles D Windows Vista General Discussion 1 03-08-2008 05:09 PM
Looking for contact to add another file extension website source Martin Kup Windows Vista File Management 1 02-25-2007 07:11 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59