RE: [PHP] syntax highlighting for Shell scripts and C?

2006-05-25 Thread Daevid Vincent
Check out Geshi http://qbnz.com/highlighter/ > -Original Message- > From: Chris [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 25, 2006 5:54 PM > To: Michelle Konzack > Cc: PHP - General > Subject: Re: [PHP] syntax highlighting for Shell scripts and C? > >

Re: [PHP] syntax highlighting for Shell scripts and C?

2006-05-25 Thread Chris
Michelle Konzack wrote: Hello, since I include source sniplets into some of my webpages I like this syntax highlighting for php scripts... because it make scripts more readable. My question is: Does such thing exist for Shell scripts and C? pastebin.com has it and the code is GPL'ed so you

[PHP] syntax highlighting for Shell scripts and C?

2006-05-25 Thread Michelle Konzack
Hello, since I include source sniplets into some of my webpages I like this syntax highlighting for php scripts... because it make scripts more readable. My question is: Does such thing exist for Shell scripts and C? (It would be realy nice) Thanks Michelle Konzack -- Linux-User #2801

RE: [PHP] syntax highlighting your php code on a web page

2005-08-03 Thread Jay Blanchard
[snip] Is there a class or some code out there which enables you to print your PHP code to a web page and make it appear with syntax highlighting? As an example of what I am after, have a look here; http://www.phpfreaks.com/phpmanual/page/function.ldap-add.html Please note this is just an exampl

[PHP] syntax highlighting your php code on a web page

2005-08-03 Thread Steve Turnbull
Hi Is there a class or some code out there which enables you to print your PHP code to a web page and make it appear with syntax highlighting? As an example of what I am after, have a look here; http://www.phpfreaks.com/phpmanual/page/function.ldap-add.html Please note this is just an example p

Re: [PHP] Syntax Highlighting variables not appearing

2005-02-28 Thread Richard Lynch
Tom Whitbread wrote: > Can anyone explain why this is happening. > > I am using the following code For giving code examples on my website > with syntax highlighting > > $text = ' 'bar';"; example_function(\$my_code); ?>'; This is not a valid

[PHP] Syntax Highlighting variables not appearing

2005-02-28 Thread Tom Whitbread
Can anyone explain why this is happening. I am using the following code For giving code examples on my website with syntax highlighting $text = ''; $body = preg_replace('/<(.*?)>/es', 'highlight_string(

Re: [PHP] Syntax highlighting of odd language

2004-11-08 Thread Aaron Gould
M. Sokolewicz wrote: Now, the problem with such a "solution" is the following. Imagine you have the following keywords: include require in of typof now, when you replace include with include, it'll go on, and also replace all instances of in, so you'll end up with things like include (very ugly)

Re: [PHP] Syntax highlighting of odd language

2004-11-05 Thread M. Sokolewicz
Aaron Gould wrote: Bruno B B Magalhães wrote: $code = 'function what() { do oddname; %oddsyntax }'; function highlight_code($code) { $oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3'); for($i = 0; $i <= count($oddsyntax)-1; $i++) { $highlighted_code = eregi_replace($o

Re: [PHP] Syntax highlighting of odd language

2004-11-05 Thread Aaron Gould
Bruno B B Magalhães wrote: $code = 'function what() { do oddname; %oddsyntax }'; function highlight_code($code) { $oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3'); for($i = 0; $i <= count($oddsyntax)-1; $i++) { $highlighted_code = eregi_replace($oddsyntax[$i],''.$o

Re: [PHP] Syntax highlighting of odd language

2004-11-05 Thread Bruno B B Magalhães
Aaron, why don't you use a very simle sintax like this one: $code = 'function what() { do oddname; %oddsyntax }'; function highlight_code($code) { $oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3'); for($i = 0; $i <= count($oddsyntax)-1; $i++) { $highlighted_code = eregi_replace($odds

[PHP] Syntax highlighting of odd language

2004-11-05 Thread Aaron Gould
Could any of you privide some leads in regard to highlighting syntax of an odd language? I have a large amount of snippits of legacy code from our company's primary application. The code used is "BBx" (a variant of Basic). I'm attempting to show this code on a web page, but with highlighting o

[PHP] Syntax Highlighting

2004-01-06 Thread Richard Davey
Hi all, I'm after a technique/method that will allow me to syntax highlight source code on my web site. PHP already does a brilliant job of this for PHP code, but I need to extend this to ANY form of source code. Does anyone know of a way to do this (even in pseudo-code) or even better, a class/f

[PHP] syntax highlighting in Apache2

2002-12-10 Thread Bob Lockie
I just installed the latest release Apache2 and PHP. It seems to work correctly but I've noticed one difference. The old server syntax highlights when I load a PHP source file but the new one is just plain B&W text. -- Sent from Mozilla and GNU/Linux --

[PHP] Syntax highlighting through Apache (Re: [PHP] Got a problem I cant figure out)

2002-01-28 Thread bvr
I just thought of this good tip: To show the highlighted php source without constanly renaming your scripts you can add the the following to your httpd.conf : Alias /src /your/document/root ForceType application/x-httpd-php-source Now, for example to show the source of http://l