Gen. partnerAlgotech

PHP function highlight_file()

Syntax highlighting of a file

|
September 11, 2019

Availability in PHP 4.0

Syntax highlighting of a file

Parameters

Parameter Data type Default value Note
$filename string not Path to the PHP file to be highlighted.
$return bool null Set this parameter to true to make this function return the highlighted code.

Return values

string

|bool 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.

Other resources

Official highlight-file documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.