When I look at code samples on the web that are linked to as a .c, .cpp, .h etc file, chrome will download it for me as a file.
Is there a way to get it to open the file (which is really just a text file with a different extension, and chrome does open text files in a tab window) in a tab window?
I would rather not have my downloads folder littered with all of these small code files.
I have looked in the chrome preferences, but have not found anything that relates to this.
Running the dev build of chrome, but I would take the option in any current build of the browser.
EDIT: Is there a way to change the way that chrome handles some mime types like text/x-chdr
or others?
Options > Applications
dialog. If Google Chrome had a comparable feature, you would have the choice to open the files in a new tab or another application directly. As far as I can tell, Google Chrome lacks such preferences.:(
CPP
file (i.e.,file:///….cpp
) does open as text, only remote ones try to download.