From c9eb61b18e3ef7bf2980e2271906b9750a2db0be Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 27 May 2013 12:37:17 -0400 Subject: [PATCH] Use CodeMirror to highlight the SQL transformation --- .../abstract/SQLTransformationsPlugin.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/plugins/transformations/abstract/SQLTransformationsPlugin.class.php b/libraries/plugins/transformations/abstract/SQLTransformationsPlugin.class.php index 5edb77e8c9..8b4aa5202a 100644 --- a/libraries/plugins/transformations/abstract/SQLTransformationsPlugin.class.php +++ b/libraries/plugins/transformations/abstract/SQLTransformationsPlugin.class.php @@ -43,7 +43,8 @@ abstract class SQLTransformationsPlugin extends TransformationsPlugin */ public function applyTransformation($buffer, $options = array(), $meta = '') { - $result = PMA_SQP_format(PMA_SQP_parse($buffer)); + // see PMA_highlightSQL() + $result = '
' . $buffer . '
'; // Need to clear error state not to break subsequent queries display. PMA_SQP_resetError(); return $result;