How can I best display code examples on my site?
I would set up an input format for code and set the field_php to use that. The code input format could use a filter like this http://drupal.org/project/codefilter