From 1160ccc1193b134c09c0a543f61e7cd4463de53f Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 19 Feb 2010 03:15:05 +0100 Subject: layout change, urls are now set here --- paste/include/pastify.inc | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'paste/include') diff --git a/paste/include/pastify.inc b/paste/include/pastify.inc index e5a0508..328c1bf 100644 --- a/paste/include/pastify.inc +++ b/paste/include/pastify.inc @@ -35,31 +35,36 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. require_once("geshi.php"); -function PastifyText($text, $language, $desc) +function PastifyText($text, $language, $desc, $get_url, $remove_url) { + global $config; + $plaintext = $text; # Do the actual syntax highlighting $geshi = new GeSHi($text, $language); + $geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS); + $geshi->set_header_type(GESHI_HEADER_PRE_TABLE); + + $geshi->set_footer_content('
Rendered in {TIME}s with GeSHi {VERSION}
'); + $geshi->set_overall_style('width: 100%;'); + $output = $geshi->parse_code(); $html = << - + Pasted code - $desc -
+
- - - - - - - + + + +
Pasted as $language [Remove this paste ]
Description: $desc
URL: ={this-paste-url}$desc ($language)[ New ][ Link ][ Remove ]
-- cgit v1.2.3