From dfd3cef734be3bc1bf2d16dfe8b2f71d6aff18a7 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 12 Aug 2010 01:47:08 -0700 Subject: added code, quote styles to editor --- include/bbcode.php | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) (limited to 'include') diff --git a/include/bbcode.php b/include/bbcode.php index 60809a7e2..674c44ec2 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -59,38 +59,11 @@ $Text = preg_replace("(\[font=(.+?)\](.+?)\[\/font\])","$2",$Text); // Declare the format for [code] layout - $CodeLayout = ' - - - - - - -
Code:
$1
'; + $CodeLayout = '$1'; // Check for [code] text $Text = preg_replace("/\[code\](.+?)\[\/code\]/is","$CodeLayout", $Text); - // Declare the format for [php] layout - $phpLayout = ' - - - - - - -
Code:
$1
'; - // Check for [php] text - $Text = preg_replace("/\[php\](.+?)\[\/php\]/is",$phpLayout, $Text); - // Declare the format for [quote] layout - $QuoteLayout = ' - - - - - - -
Quote:
$1
'; - + $QuoteLayout = '
$1
'; // Check for [quote] text $Text = preg_replace("/\[quote\](.+?)\[\/quote\]/is","$QuoteLayout", $Text); -- cgit v1.2.3