RE: [PHP] highlight_string()

2006-03-10 Thread Weber Sites LTD
ject: Re: [PHP] highlight_string() On 3/10/06, Weber Sites LTD <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to go with your idea but I'm having difficulties with > preg_match_all. > I want the text between . The use of preg_match_all bellow > only Returns text

Re: [PHP] highlight_string()

2006-03-10 Thread Robin Vickery
On 10/03/06, Weber Sites LTD <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to go with your idea but I'm having difficulties with > preg_match_all. > I want the text between . The use of preg_match_all bellow only > Returns text that is in a single line. If the > is > A few lines bellow, it does n

Re: [PHP] highlight_string()

2006-03-10 Thread chris smith
Tuesday, March 07, 2006 3:08 AM > To: Weber Sites LTD > Cc: php-general@lists.php.net > Subject: Re: [PHP] highlight_string() > > Weber Sites LTD wrote: > > I was afraid of that... > > I need to do HTML manipulations on the text that is outside the . > > After I run highlig

RE: [PHP] highlight_string()

2006-03-10 Thread Weber Sites LTD
;/i',$text,$CodeArray,PREG_PATTERN_ORDER); Thanks. -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 3:08 AM To: Weber Sites LTD Cc: php-general@lists.php.net Subject: Re: [PHP] highlight_string() Weber Sites LTD wrote: > I was afraid o

Re: [PHP] highlight_string()

2006-03-06 Thread Chris
processing here. foreach($placeholders as $i => $text) { $content = str_replace('%%PLACEHOLDER['.$i.']%%', highlight_string($text), $content); } -Original Message- From: chris smith [mailto:[EMAIL PROTECTED] Sent: Monday, March 06, 2006 11:59 AM To: Weber Sites LTD

RE: [PHP] highlight_string()

2006-03-06 Thread Weber Sites LTD
[mailto:[EMAIL PROTECTED] Sent: Monday, March 06, 2006 11:59 AM To: Weber Sites LTD Cc: php-general@lists.php.net Subject: Re: [PHP] highlight_string() On 3/6/06, Weber Sites LTD <[EMAIL PROTECTED]> wrote: > The only way I could work around this was to put empty at the > Beginning of

RE: [PHP] highlight_string()

2006-03-06 Thread gustav
Sent: Monday, March 06, 2006 11:29 AM > To: php-general@lists.php.net > Subject: [PHP] highlight_string() > > Hi > > From what I see, highlight_string() should only change text between ?>. > Any idea why it highlights all of the text I send to it (even text outside > ?

Re: [PHP] highlight_string()

2006-03-06 Thread chris smith
On 3/6/06, Weber Sites LTD <[EMAIL PROTECTED]> wrote: > The only way I could work around this was to put empty at the > Beginning of the text and now highlight_string() highlights only what > Is inside > > You can see an example of the problematic text in the example > Area of this page : http://

RE: [PHP] highlight_string()

2006-03-06 Thread Weber Sites LTD
Subject: [PHP] highlight_string() Hi >From what I see, highlight_string() should only change text between . Any idea why it highlights all of the text I send to it (even text outside ? Thanks berber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] highlight_string()

2006-03-06 Thread Weber Sites LTD
Hi >From what I see, highlight_string() should only change text between . Any idea why it highlights all of the text I send to it (even text outside ? Thanks berber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] highlight_string for VB, CPP or .NET source code?

2003-02-18 Thread stefen Lars
Hello all PHP offers the fantastic function ‘highlight_string’ to highlight PHP source code. I was wondering whether anyone had written a function to highlight Visual Basic, CPP or .NET source code. Alternatively, would anyone have any suggestions on how to write such a function. Ideally, the

[PHP] highlight_string parsing in an article

2001-03-16 Thread Jason Lotito
Okay, I have a bugger here. I am working on a script for my site to parse articles, comments, so that people use a special markup (like [b] [/b] for , etc). One of the feature I want to implement is a [code] feature that will parse the code between [code] and [/code] like it would in hightlight