PHP » GoLang |
login |
register |
about
|
GoLang highlight_string
request it (351)
GoLang replacement for PHP's highlight_string
[edit | history]
highlight_string(PHP 4, PHP 5, PHP 7) highlight_string — Syntax highlighting of a string DescriptionOutputs 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. |
more
Recently updated
more
Most requested
more
Last requests
|