Shoutbox

Highlited source files - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Highlited source files (/showthread.php?tid=74991)

Highlited source files by Baggins on 06-02-2007 at 08:34 PM

In places I have seen files containing PHP source code, and the code is highlited.  The files were .phps files, and I've tried renaming them to that.

If anyone could help me out with this, It would be great.;)


RE: Highlited source files by Nathan on 06-02-2007 at 08:44 PM

you sure there not using highlight_string ?


RE: Highlited source files by Baggins on 06-02-2007 at 08:48 PM

Not really, but I don't understand why they would have the .phps extension.

I guess that I could make up a mime type to go with .phps files,
then use that with a Action directive in .htaccess to a highlighting script. :p


RE: Highlited source files by WDZ on 06-02-2007 at 08:56 PM

code:
AddType application/x-httpd-php-source .phps

RE: Highlited source files by Baggins on 06-02-2007 at 09:00 PM

* Baggins huggles 'DZ and NayNay