--- F:/WebServers/home/d5/www/modules/api/parser - Copy.inc	Sun Jun 01 18:41:49 2008
+++ F:/WebServers/home/d5/www/modules/api/parser.inc	Sun Jun 01 20:05:51 2008
@@ -538,6 +538,9 @@
   // Process the @code @endcode tags.
   $documentation = preg_replace_callback('!@code(.+?)@endcode!s', 'api_format_embedded_php', $documentation);
 
+  // Process the @verbatim @endverbatim tags.
+  $documentation = preg_replace_callback('!@verbatim(.+?)@endverbatim!s', 'api_format_verbatim', $documentation);
+
   // Format lists
   $documentation = api_format_documentation_lists($documentation);
 
@@ -555,6 +558,17 @@
 function api_format_embedded_php($matches) {
   return "\n\n". api_format_php("<?php\n". decode_entities($matches[1]) ."\n?>") ."\n\n";
 }
+
+/**
+ * Regexp replace callback for verbatim tags.
+ */
+function api_format_verbatim($matches) {
+  $code = api_format_php("<?php ". decode_entities($matches[1]) ."\n?>");
+  $code = preg_replace('!<span class="php-boundry">(.*?)</span>!m','',$code);
+  $code = preg_replace("!<code>\n!m",'<code>',$code);
+  return $code;
+}
+
 
 /*
  * Parse a block of text for lists that use hyphens or asterisks as bullets, and
