diff options
Diffstat (limited to '')
-rw-r--r-- | paste/include/pastify.inc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/paste/include/pastify.inc b/paste/include/pastify.inc index d106da6..e5a0508 100644 --- a/paste/include/pastify.inc +++ b/paste/include/pastify.inc @@ -33,23 +33,15 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -require_once("class.geshi.php"); +require_once("geshi.php"); function PastifyText($text, $language, $desc) { $plaintext = $text; - $text = ereg_replace("(&)", "&", $text); - $text = ereg_replace("(<)", "<", $text); - $text = preg_replace("/^[ \\t\\r]*$/ms", " ", $text); - - $lines = explode("\n", $text); - $nlines = count($lines); - $lineout = ""; - # Do the actual syntax highlighting $geshi = new GeSHi($text, $language); - $output = $geshi->parseCode(); + $output = $geshi->parse_code(); $html = <<<EOH <html> |