LemonInflux Posted September 16, 2007 Share Posted September 16, 2007 Ok, I've seen this on many sites, including this one. Where you have a code (say, PHP), and different commands and functions are coloured in different ways. An example: <?php echo 'text'; ?> Various colours are used to highlight different parts of the code. I've tried google'ing it, but I found nothing. Anyone know how to do it? Link to comment https://forums.phpfreaks.com/topic/69595-highlight-codesyntax/ Share on other sites More sharing options...
marcus Posted September 16, 2007 Share Posted September 16, 2007 <?php highlight_file("filename.ext"); ?> Link to comment https://forums.phpfreaks.com/topic/69595-highlight-codesyntax/#findComment-349762 Share on other sites More sharing options...
Jessica Posted September 16, 2007 Share Posted September 16, 2007 you'd probably want to use highlight string in this case, but either would work Link to comment https://forums.phpfreaks.com/topic/69595-highlight-codesyntax/#findComment-349774 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.