NYCPHP Meetup

NYPHP.org

[nycphp-talk] New PHundamentals Article - Error Handling

Chris Shiflett shiflett at php.net
Mon Jul 19 17:30:12 EDT 2004


--- Mitch Pirtle <mitchy at spacemonkeylabs.com> wrote:
> 1) Many programming sites use a colored background for displaying
> source code inline, which is a tremendous visual aid - it visually
> separates text from code. I would love to see this done here

I completely agree. PHP has the handy highlight_string() and
highlight_file() functions for this. I even set up a little utility for
myself recently, because I found that I can copy/paste from Safari to a
Word document, and it preserves the color (yes, I'm easily impressed).
It's here for any who want to play:

http://shiflett.org/color_code.php

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly
     Coming Fall 2004
HTTP Developer's Handbook - Sams
     http://httphandbook.org/
PHP Community Site
     http://phpcommunity.org/



More information about the talk mailing list