Display code block?
PermalinkI've Google'd different methods to do this but so far I haven't found anything that I can use to accomplish this.
If this would be doable, or if someone can point me in the direction of a way that already exists to do this I would greatly appreciate it! Thanks! :D
?
sanitizing program pattern.
$temp = preg_replace('/&/','&',$source); $patterns = array( '/</', '/>/' ); $replacements = array( '<', '>' ); $result = preg_replace($patterns, $replacements, $temp);
I made it with StntaxHighlighter.
SyntaxHighlighter:
http://alexgorbatchev.com/
http://code.google.com/p/syntaxhighlighter/...