Wed, April 14, 2021
 
https://devcodepro.comdevcodepro
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: 774  / 2 years ago, sun, jan 20, 19, 08:37:34
More From » PHP
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Posted
my3profile
Member since May 21, 2018
Total Code Snippets: 4
Total Comments: 1
Location: n/a
my3profile snippets
3 years ago, mon, may 21, 18, 4:27:10
comments: 0 / hits: 1121
3 years ago, sat, jun 23, 18, 11:07:37
comments: 1 / hits: 1916
2 years ago, sun, jan 20, 19, 7:48:04
comments: 0 / hits: 868
PHP