Re: [PHP-DOC] user-notes.php preview

2004-01-05 Thread Jakub Vrana
> I would be happy to commit a corrected patch :) BTW do not worry about > the missing highlight_php() function, it will be implemented if needed. I think the patch can be as simple as this. Jakub VranaIndex: user-notes.php === RCS f

Re: [PHP-DOC] user-notes.php preview

2004-01-05 Thread Gabor Hojtsy
+ $cleaned_note = clean_note(stripslashes($note)); + $cleaned_note = preg_replace_callback( +'#<\?php(.*)\?>#', +create_function( + '$matches', + 'return highlight_php(\'\');' +) + ); One call of highlight_php should be enough as PHP tags are

Re: [PHP-DOC] user-notes.php preview

2004-01-05 Thread Jakub Vrana
Ken Tossell wrote: > + $cleaned_note = clean_note(stripslashes($note)); > + $cleaned_note = preg_replace_callback( > +'#<\?php(.*)\?>#', > +create_function( > + '$matches', > + 'return highlight_php(\'\');' > +) > + ); One call of highlight_