Jump to content

Syntax Highlighting


947740

Recommended Posts

now setting the colors and all that u can use ini_set() function but i advise changing the php.ini theo......

 

small example tested..........

<?php
$redarrow="<?php

\$name='redarrow';
\$age='34';

if(\$age>30){

echo '<html><body>You are old man</body></html>';
}

?>";

highlight_string($redarrow);

?>

<?php
$name='redarrow';
$age='34';

if($age>30){

echo "<html><body>You are old man $name</body></html>";
}

?>

Link to comment
https://forums.phpfreaks.com/topic/105752-syntax-highlighting/#findComment-541945
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.