Sat, July 11, 2020, 00:30:53
 
Home · Latest · Trends  /  PHP
2

Highlight String Example

<?php
$string = '<?php
/**
 * @author me
 * @copyright 2019
 */
$foo = "Highlight String";
echo $foo;
?>';
echo '<pre style="line-height:18px;padding:5px;border:1px solid #aaa;max-width:600px;white-space:normal;background-color:#eff0f1;">';
highlight_string($string);
echo '</pre>';
?>
rated 2 times [  2] [ 0]  / comments: 0 / hits: 522  / 2 years ago, sun, jan 20, 2019, 20:37:34
More From » PHP
 

Comments

There are no comments for this Snippet yet
Username
 
Your Comment
 
Share
Snippets
2 years ago, mon, may 21, 2018
2 years ago, sat, jun 23, 2018
2 years ago, sun, jan 20, 2019
Posted
my3profile

my3profile

Member since May 21, 2018
Total Code Snippets: 4
Total Comments: 1
Location: n/a
Following
User not following anyone yet.