Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Internet Explorer / General Topics / June 2007

Tip: Looking for answers? Try searching our database.

File extension stripped when using View Source

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon Davis - 20 Jun 2007 00:52 GMT
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.

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.

Thanks,
Jon
Robert Aldwinckle - 20 Jun 2007 16:55 GMT
>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
[quoted text clipped - 8 lines]
>
> Is there a way to restore the file type?

Don't use View Source?   E.g. use the  Edit  button  or equivalently
File, Edit with...  (Alt-F,d)  instead.    Hint:  you can choose your HTML editor
on the  Options, Programs  tab.

HTH

Robert Aldwinckle
---

> 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
[quoted text clipped - 4 lines]
> Thanks,
> Jon
Jon Davis - 20 Jun 2007 17:29 GMT
Uh, no. I'm trying to View Source of exactly what the browser downloaded,
not Edit the file on the server. The point of the exercise is introspection,
i.e. to find where in a generated file something I'm looking for may be, not
file editing. Edit will try to download the page again (which will produce
different output in some conditions), and if possible try to use FrontPage
Extensions or WebDAV, and then try to set me up to upload again. That would
fail (if without errors), of course, with a custom editor, but it's really
not what I had in mind. Besides, I have a reserved use for Edit.

Back to my original question, does anyone know how to get the file type to
be retained when executing View Source?

Jon

>>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
[quoted text clipped - 30 lines]
>> Thanks,
>> Jon
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.