[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-source-highlight] same but different :)
From: |
Curtis A. Weyant |
Subject: |
Re: [Help-source-highlight] same but different :) |
Date: |
Fri, 01 Mar 2002 14:35:53 -0500 |
>> > I would like to have the same program but in php3. I want a function that
>> > take a string in param and generate a tagged hightligthed html string that
>> > i can display directly in php.
>>
>> I can take a look at this.
>> Ok Lorenzo ?
>
>Hi all
>
>I'm not sure I understood the problem; first I don't know php, but as I
>understand you'd like to be able to call source-highlight from a sort of
>cgi and display directly in response?
This should be pretty easy to do from php. Consider the following:
<?php
$output = `your command here`;
print $output;
?>
If all you wanted was just the straight output of the command, this should do
the trick.
Note that I haven't actually used source-highlight, so I don't know exactly how
it works.
Hope that helps!
Curtis.
Is your boss reading your email? ....Probably
Keep your messages private by using Lycos Mail.
Sign up today at http://mail.lycos.com
From address@hidden Fri Mar 01 14:47:02 2002
Received: from smtp2.libero.it ([193.70.192.52])
by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
id 16gsze-0006Q9-00
for <address@hidden>; Fri, 01 Mar 2002 14:47:02 -0500
Received: from dsi.unifi.it (151.27.21.90) by smtp2.libero.it (6.0.040)
id 3C58404401493B75 for address@hidden; Fri, 1 Mar 2002 20:46:51 +0100
Message-ID: <address@hidden>
Date: Fri, 01 Mar 2002 20:45:46 +0100
From: Lorenzo Bettini <address@hidden>
Organization: Dipartimento Sistemi e Informatica, Univ. di Firenze
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-20mdk i686)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: address@hidden
Subject: Re: [Help-source-highlight] same but different :)
References: <address@hidden>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.5
Precedence: bulk
Reply-To: address@hidden
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
<mailto:address@hidden>
List-Id: discussion list for source-highlight <help-source-highlight.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
<mailto:address@hidden>
List-Archive: <http://mail.gnu.org/pipermail/help-source-highlight/>
"Curtis A. Weyant" wrote:
>
> >> > I would like to have the same program but in php3. I want a function that
> >> > take a string in param and generate a tagged hightligthed html string
> >> > that
> >> > i can display directly in php.
> >>
> >> I can take a look at this.
> >> Ok Lorenzo ?
> >
> >Hi all
> >
> >I'm not sure I understood the problem; first I don't know php, but as I
> >understand you'd like to be able to call source-highlight from a sort of
> >cgi and display directly in response?
>
> This should be pretty easy to do from php. Consider the following:
>
> <?php
> $output = `your command here`;
> print $output;
> ?>
>
> If all you wanted was just the straight output of the command, this should do
> the trick.
that's exactly what I meant :-)
was this the original intention?
cheers
Lorenzo
--
+-----------------------------------------------------+
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| PhD student in Computer Science |
| Dip. Sistemi e Informatica, Univ. di Firenze |
| Tel +39 055 4796741, Fax +39 055 4796730 |
| Florence - Italy (Linux User # 158233) |
| Home Page : http://w3.newnet.it/bettini |
| Mail : address@hidden |
| http://music.dsi.unifi.it XKlaim language |
| http://w3.newnet.it/bettini/purple Cover Band |
| http://www.gnu.org/software/src-highlite |
| http://www.gnu.org/software/gengetopt |
+-----------------------------------------------------+