I want to post a .h file from a project I'm working on.  I set a simple href link to it, like:<p>Click here to download the <a href=project_strings.h>strings file</a>.When I click on it, though, my web browser (Iceweasel 12) gives me a prompt to download the file, instead of just displaying it:Is there any magic I can add to the web page, or as a header to the file (that will still allow it to be included by a .c compiled with gcc), to get the .h file to be displayed in the web browser?
How can I make a web browser view my .h file as text?
html;text
If the file is served by an HTTP server (web server), check that it is sent with the header Content-Type: text/plain (and, if needed, modify server settings to achieve that). To check the headers, use e.g. http://web-sniffer.net.Otherwise, you could set type=text/plain on the linking element, i.e.<a href=project_strings.h type=text//plain>strings file</a>though the odds are that this has no effect.Thats pretty much what you can do as an author. The rest is up to the browser and its settings.