what is the rule for htaccess that makes all files text ?
like .php .py .pl whatever will be no different than .txt, source code should appear on the screen without execution.
thx.
what is the rule for htaccess that makes all files text ?
like .php .py .pl whatever will be no different than .txt, source code should appear on the screen without execution.
thx.
ForceType text/plain
http://httpd.apache.org/docs/2.2/mod/core.html#forcetype
Create a rule in an .htaccess file in whatever directory you want to house your code examples. The .htaccess file should have this in it:
That's it. You'll get nice color coding. Jeff's answer works well for all file types.