Search Results

Search found 2 results on 1 pages for 'drewbenn'.

Page 1/1 | 1 

  • How can I make a web browser view my .h file as text?

    - by drewbenn
    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?

    Read the article

  • best practice for last-modified and created dates

    - by drewbenn
    I have a website with a handful (currently 3; I anticipate about a dozen when it's complete) of static html pages. I'd like to include "created" and "last-modified" dates in the pages for the benefit of visitors who arrive a week or a month or a few years from now. I expect anyone who cares to be viewing the source, so I could do: <!-- created yyyy-mm-dd, last-modified yyyy-mm-dd --> but I'd like to use something more standard (and elegant). I've found one reference to last modified (but only a mention in the text, not an actual code reference, so I'm not positive how to properly implement it) but not created. Is there a proper way to display both (or at least one) of these dates?

    Read the article

1