Page 1 of 1
highlight_string()
Posted: Fri Mar 09, 2007 9:33 pm
by nwp
highlight_string() Prints the highlighted string but i wanna do like this
e.g. $str will hold the formated HTML
Re: highlight_string()
Posted: Fri Mar 09, 2007 9:38 pm
by AKA Panama Jack
nwp wrote:highlight_string() Prints the highlighted string but i wanna do like this
e.g. $str will hold the formated HTML
You might want to check the PHP documentation.
Code: Select all
$str = highlight_string($line, true);
Posted: Fri Mar 09, 2007 9:38 pm
by aaronhall
The
manual entry provides some valuable insight
(Hint: look at the second, optional parameter)
edit: too quick on your feet, panama jack

Posted: Sat Mar 10, 2007 12:39 am
by AKA Panama Jack
First time for everything.

Posted: Sat Mar 10, 2007 3:59 am
by nwp
OK Thanks It working with true argument. But ho wcan I highlight HTML sorce code
Posted: Sun Mar 11, 2007 5:35 am
by aaronhall
There is no built-in PHP function, but you could try a third party syntax highlighter like Geshi.
Posted: Sun Mar 11, 2007 8:19 am
by nwp
aaronhall wrote:There is no built-in PHP function, but you could try a third party syntax highlighter like Geshi.
Whats Geshi ??
Posted: Sun Mar 11, 2007 9:01 am
by feyd
Google it.