Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: PHP Coloring?
08-06-2007, 09:13 PM #1
I didnt really know what to call this thread, so i figured PHP coloring, although vague, represents what im about to ask.
You know the way the code gets formatted on these forums, when its put between [PHP] tags, like all the different elements get different colors.
I was wondering if there was anyway I could implement that on my site. Like i post some code and it automaticlly does that for me.
Any help would be nice.
08-06-2007, 09:53 PM #2
- Join Date
- Apr 2007
- Thanked 5 Times in 5 Posts
Also escape $ if you have one.. (\$)PHP Code:
echo \"Hello world!\";
echo highlight_string ($str, 'true' );
08-06-2007, 10:23 PM #3
awesome thanks, ill give it a try!