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! Quote Link to comment 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 Quote Link to comment 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.