--- uniwakka/formatters/wakka.php	2006-02-07 09:41:26.000000000 -0800
+++ /var/www/html/wiki/formatters/wakka.php	2006-05-05 21:11:50.000000000 -0700
@@ -81,6 +81,46 @@
       else if ($thing == "&")
          return "&amp;";
 
+		// code text
+		else if (preg_match("/^\%\%(.*)\%\%$/s", $thing, $matches))
+		{
+			// check if a language has been specified
+			$code = $matches[1];
+			if (preg_match("/^\((.+?)\)(.*)$/s", $code, $matches))
+			{
+				list(, $language, $code) = $matches;
+			}
+			switch ($language)
+			{
+			case "php":
+				$formatter = "php";
+				break;
+			case "c++":
+				$formatter = "php";
+				$code = "<?php ".$code."?>";
+				break;
+			default:
+				$formatter = "code";
+			}
+
+			$output = "<div class=\"code\">";
+
+                        if ($language=="c++")
+                        {
+                            $temp = $wakka->Format(trim($code), $formatter);
+                            $temp = str_replace("<?php","",$temp);
+                            $temp = str_replace("?>","",$temp);
+                            $output .= $temp;
+                        }
+                        else
+                            $output .= $wakka->Format(trim($code), $formatter);
+
+			$output .= "</div>";
+
+			return $output;
+		}
+
+
 // escaped text
       else if (preg_match("/^\"\"(.*)\"\"$/s", $thing, $matches))
       {
@@ -662,46 +702,6 @@
       */
       
 
-
-		// code text
-		else if (preg_match("/^\%\%(.*)\%\%$/s", $thing, $matches))
-		{
-			// check if a language has been specified
-			$code = $matches[1];
-			if (preg_match("/^\((.+?)\)(.*)$/s", $code, $matches))
-			{
-				list(, $language, $code) = $matches;
-			}
-			switch ($language)
-			{
-			case "php":
-				$formatter = "php";
-				break;
-			case "c++":
-				$formatter = "php";
-				$code = "<?php ".$code."?>";
-				break;
-			default:
-				$formatter = "code";
-			}
-
-			$output = "<div class=\"code\">";
-
-                        if ($language=="c++")
-                        {
-                            $temp = $wakka->Format(trim($code), $formatter);
-                            $temp = str_replace("<?php","",$temp);
-                            $temp = str_replace("?>","",$temp);
-                            $output .= $temp;
-                        }
-                        else
-                            $output .= $wakka->Format(trim($code), $formatter);
-
-			$output .= "</div>";
-
-			return $output;
-		}
-
 //farben neue version
       else if ($thing == ":blank:")
          { return ("&#160"); }
