highlight_code($str)
Parameters: |
|
---|---|
Returns: |
String with code highlighted via HTML |
Return type: |
string |
Colorizes a string of code (PHP, HTML, etc.). Example:
$string = highlight_code($string);
The function uses PHP’s highlight_string()
function, so the colors used are the ones specified in your php.ini file.
Please login to continue.