[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [kDev] Update and viewing php source code question...




Question: Before we had .phps files symbolically linked to the .php files so that we could show the source code. But that started to get rather messy especially when creating new files or changing their names. Is there a way of showing php source without having additional files cluttering up the place? Looking for something simple rather than going full on CVS right now. Something that could search a set of directories, pull out all the .php files, create a webpage looking similar too:
http://www.kendra.org.uk/develop-code.php
(which listed all the .php files with their .phps equivalents) but rather than creating actual .phps files could it do some kind of on the fly parsing, err... Yes?

There are two identical php functions called show_source() and highlight_file() that take a filename and return a string of syntax highlighted source code.

Joe