Refactor demo server: do not rely any more on legacy, more CamelCasiness
[plcapi.git] / doc / highlight.php
index 82afde5..750261b 100644 (file)
@@ -3,7 +3,7 @@
  * takes a dir as arg, highlights all php code found in html files inside.
  *
  * @author Gaetano Giunta
- * @copyright (c) 2007-2014 G. Giunta
+ * @copyright (c) 2007-2015 G. Giunta
  */
 function highlight($file)
 {
@@ -19,11 +19,11 @@ function highlight($file)
         if ($code[strlen($code) - 1] == "\n") {
             $code = substr($code, 0, -1);
         }
-//var_dump($code);
+
         $code = str_replace(array('&gt;', '&lt;'), array('>', '<'), $code);
         $code = highlight_string('<?php ' . $code, true);
         $code = str_replace('<span style="color: #0000BB">&lt;?php&nbsp;<br />', '<span style="color: #0000BB">', $code);
-//echo($code);
+
         $out = $out . substr($content, $last, $start + strlen($starttag) - $last) . $code . $endtag;
         $last = $end + strlen($endtag);
     }