|
highlight_stringSyntax highlighting of a string Description
mixed highlight_string
( string
$str
[, bool $return = false
] )Outputs or returns html markup for a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP. Parameters
Return Values
If Examples
Example #1 highlight_string example
<?php The above example will output: <code><span style="color: #000000"> <span style="color: #0000BB"><?php phpinfo</span><span style="color: #007700">(); </span><span style="color: #0000BB">?></span> </span> </code> Notes
The HTML markup generated is subject to change. |