Re: syntax highlighting
| From: | Joe Stump | Date: | Thu, 09 Nov 2000 19:36:00 +0000 |
| Subject: | Re: syntax highlighting | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24542@lists.php.net to get a copy of this message | ||
I wasn't recommending it - just answering the question. I suppose it would
slow it down (having to send code through the parser twice), but I don't think
it would be "ultra" slow - mostly I would use it for string variables in a
db news entry and being able to evaluate that on the fly.
--Joe
On Thu, Nov 09, 2000 at 02:36:34PM -0500, Steve Nelson wrote:
> Wouldn't that be ultra slow having to eval() all your code?
>
> Steve Nelson
> http://www.SecretAgents.com
> Tools for Fusebox Developers
>
> Joe Stump wrote:
> >
> > Check out the eval() function - it reruns code stored in a string. So the answer
> > to your question is yes ;o)
> >
> > --Joe
> >
> > On Thu, Nov 09, 2000 at 12:55:23PM -0500, craig girard wrote:
> > > This has brought up a good question. Can PHP code be stored in a db and run
> > > after queried? that is awesome if it can.
> > >
> > > -----Original Message-----
> > > From: Joe Stump [mailto:joe@earth.care2.com]
> > > Sent: Thursday, November 09, 2000 12:42 PM
> > > To: David Tod Sigafoos
> > > Cc: Joe Stump; php-general@lists.php.net
> > > Subject: Re: [PHP] syntax highlighting
> > >
> > >
> > > Everyone can see what I meant by "Syntax highlighting" here:
> > >
> > > http://www.miester.org/articles/1
> > >
> > > I wanted to highlight my code in an article that was stored in a database on
> > > the
> > > fly, and then pass it to a function for some other formatting. The fix was
> > > posted earlier on the list.
> > >
> > > --Joe
> > >
> > > On Thu, Nov 09, 2000 at 07:11:11AM -0800, David Tod Sigafoos wrote:
> > > > JS> Is there something that will highlight a string and RETURN the
> > > highlighted
> > > > JS> string? highlight_string() PRINTS out the highlighted string - this is
> > > NOT what
> > > > JS> I need it to do.
> > > >
> > > > Joe,
> > > >
> > > > you know that <b></b> are the html bold tags .. yes? What else are
> > > > you trying to achieve?
> > > >
> > > > DSig
> > > > David Tod Sigafoos
> > > >
> > > ============================================================================
> > > ====
> > > = Joe Stump joestump98@yahoo.com
> > > http://www.miester.org =
> > > ============================================================================
> > > ====
> > > "Real programmers don't comment their code.
> > > It was hard to write, it should be hard to understand."
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> > >
> > ================================================================================
> > = Joe Stump joestump98@yahoo.com
> > http://www.miester.org =
> > ================================================================================
> > "Real programmers don't comment their code.
> > It was hard to write, it should be hard to understand."
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
================================================================================
= Joe Stump joestump98@yahoo.com http://www.miester.org =
================================================================================
"Real programmers don't comment their code.
It was hard to write, it should be hard to understand."