[MLUG] syntax highlighting of code for HTML web pages

Russell Horn mlug at albanach.com
Wed Nov 28 19:12:02 CST 2007


Mike Miller wrote:
> Do you guys ever make pages that have this kind of look?...
>
> http://www.ctyalcove.org/~elizabeth/openid.phps

This is a standard feature of PHP.

In your httpd.conf you have:

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


And PHP does the rest, highlighting your PHP appropriately for any file 
ending .phps

Russell



More information about the members mailing list