947740 Posted May 15, 2008 Share Posted May 15, 2008 I noticed in the php.ini file there was a section for syntax highlighting, when that is turned on. What exactly is that, what does it do, what is the purpose, and how do I turn it on (if it will benefit me in any way)? Link to comment https://forums.phpfreaks.com/topic/105752-syntax-highlighting/ Share on other sites More sharing options...
The Little Guy Posted May 15, 2008 Share Posted May 15, 2008 it does the same thing that it does on the form http://us2.php.net/manual/en/function.highlight-string.php I am not sure if it enables the above link, or if it highlights phps files. Link to comment https://forums.phpfreaks.com/topic/105752-syntax-highlighting/#findComment-541850 Share on other sites More sharing options...
947740 Posted May 15, 2008 Author Share Posted May 15, 2008 Thanks a lot! I could have looked that up, but I wanted an answer that would actually make sense instead of the technical stuff... Link to comment https://forums.phpfreaks.com/topic/105752-syntax-highlighting/#findComment-541853 Share on other sites More sharing options...
The Little Guy Posted May 15, 2008 Share Posted May 15, 2008 Found something else: http://us2.php.net/manual/en/misc.configuration.php#ini.syntax-highlighting Link to comment https://forums.phpfreaks.com/topic/105752-syntax-highlighting/#findComment-541856 Share on other sites More sharing options...
redarrow Posted May 15, 2008 Share Posted May 15, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.