cvs: peardoc / colorize.php

From: Date: Sat, 29 Dec 2007 22:12:12 +0000
Subject: cvs: peardoc / colorize.php
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-10287@lists.php.net to get a copy of this message
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 <mj@php.net> | // +----------------------------------------------------------------------+ // -// $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'; } // }}}

« previous php.pear.doc (#10287) next »