SharkBait Posted February 19, 2007 Share Posted February 19, 2007 Not sure where this should go, but.... Anyone know of a script that I can use that will parse PHP code and colourize it nicely like it does for forum etc? I want to be able to add pretty looking code snippets on my blog and currently I just use a class via CSS to do some basic formating (font, line spacing, element width) in a simple <div> tag. I'd like to be able to use something like but without have to create a complex class/script to do it for me actually. Sure I coded my own blog, but I didn't code the WYSIWYG editor in it nor will I want to code this. I do have my limits! LoL Thanks! Link to comment https://forums.phpfreaks.com/topic/39240-looking-for-parse-php-code/ Share on other sites More sharing options...
utexas_pjm Posted February 20, 2007 Share Posted February 20, 2007 Would this not work? http://www.php.net/manual/en/function.highlight-string.php Best, Patrick Link to comment https://forums.phpfreaks.com/topic/39240-looking-for-parse-php-code/#findComment-189114 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.