cvs: peardoc / colorize.php

[email protected] ("Mark Wiesemann")
Newsgroups php.pear.doc
Message-ID <cvswiesemann1198966332@cvsserver>
wiesemann		Sat Dec 29 22:12:12 2007 UTC

  Modified files:              
    /peardoc	colorize.php 
  Log:
  - use lowercase tags (to make Helgi happy *g*)
  
http://cvs.php.net/viewvc.cgi/peardoc/colorize.php?r1=1.2&r2=1.3&diff_format=u
Index: peardoc/colorize.php
diff -u peardoc/colorize.php:1.2 peardoc/colorize.php:1.3
--- peardoc/colorize.php:1.2	Thu Oct 30 04:18:43 2003
+++ peardoc/colorize.php	Sat Dec 29 22:12:12 2007
@@ -18,7 +18,7 @@
 // |          Martin Jansen <[email protected]>                                  |
 // +----------------------------------------------------------------------+
 //
-// $Id: colorize.php,v 1.2 2003/10/30 04:18:43 cellog Exp $
+// $Id: colorize.php,v 1.3 2007/12/29 22:12:12 wiesemann Exp $
 //
 
 /**
@@ -132,7 +132,7 @@
     $content = join("", file($htmldir . "/" . $filename));
 
     $content = preg_replace_callback(
-        "!<PRE\s+CLASS=\"php\"\s+>(.+)</PRE!Us",
+        "!<pre\s+class=\"php\"\s+>(.+)</pre!Us",
         "format",
         $content
     );
@@ -179,7 +179,7 @@
     // add \n to fix highlight_string() for cut-and-pasting examples
     $colored_example = str_replace('<br />', "\n", $colored_example);
 
-    return '<PRE CLASS="php">' . $colored_example . '</PRE';
+    return '<pre class="php">' . $colored_example . '</pre';
 }
 
 // }}}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.