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
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
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
;/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
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
[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
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
> ?
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://
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.
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
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
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
12 matches
Mail list logo