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?
>
>
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
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
[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
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
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
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(
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)
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
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
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
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
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
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
--
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
15 matches
Mail list logo