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? Quote 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"); ?> Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/69595-highlight-codesyntax/#findComment-349774 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.