highlight_file()
highlight_file - Syntax highlighting of a file
Syntax
mixed highlight_file (
string $filename,
bool $return)
Arguments
- filename - Path to the PHP file to be highlighted.
- return - Set this parameter to TRUE to make this function return the highlighted code.
Description
Prints out or returns a syntax highlighted version of the code contained in filename using the colors defined in the built-in syntax highlighter for PHP.
Version
PHP 4, 5
Return value
If return is set to TRUE, returns the highlighted code as a string instead of printing it out. Otherwise, it will return TRUE on success, FALSE on failure.