David C. Rankin wrote:
No, No, Guys, there's no question there,
I have a bunch of c & c++ files in a directory on my website. The entire /downloads directory has +indexes set just so I can browse it as a directory, just like you browse http://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_11.1/x86_... to find a specific rpm.
Forget mycols.cc for the moment, and let's just focus on text files regardless of whether it's a script, source file, csv export, whatever. When I click on a text file in Firefox, it ought to display the text file in the browser windows just like all browsers have done since the dawn of NCSA Mosaic. For some reason firefox won't do this.
I don't want to open the file for editing either, I just want to display it in the browser window, so I can do a quick select of the code I want, then alt+tab and middle-click insert the text into kate or vi or whatever else I may be working with at the time.
For example, go to:
http://www.3111skyline.com/download/ the click on the webdev directory, the look at the short text file "cp3colTemplateFiles". Firefox opens that just fine.
Now click 'back' in firefox and then choose "Parent Directory" and navigate to the directory "programming/c++/apps" and then try to click on the text file "viewmod_posix.cpp" and the damn Firefox save dialog pops back up. WTF??
Why can't I look at "viewmod_posix.cpp" the same way I just looked at "cp3colTemplateFiles"??? This is what I want to fix and I can't seem to outsmart firefox to make it work.
Obviously Firefox isn't using the actual 'file' information to make a decision whether to open the file or not, so I must be using some time of extension scheme. How do I tell it that for '.c*', just display the dang file. It does it for a whole host of other text files.
In download/linux/ati/ there are a number for files, xorg.confs, etc. and every text file in there opens right up in the browser....
There has to be a simple fix -- or an evil conspiracy somewhere...
Thanks for any help you can give.
I installed the addon from the link Sylvester provided http://www.spasche.net/openinbrowser/ and used it to successfully open one of your .cpp files as a text file in the browser. That's what you're looking for isn't it. Regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org