From e629c0e829239738c1ba51e6c01e54c8f8c76e02 Mon Sep 17 00:00:00 2001
From: Mike Beck
Date: Wed, 12 Jun 2002 18:08:43 +0000
Subject: [PATCH] wrote some stuff on syntaxcoloring in Documentation.html
---
Documentation.html | 74 ++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 72 insertions(+), 2 deletions(-)
diff --git a/Documentation.html b/Documentation.html
index 01b5228bd..bea715640 100755
--- a/Documentation.html
+++ b/Documentation.html
@@ -1166,6 +1166,39 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
+ $cfg['UseSyntaxColoring'] boolean
+
+ Introduced in 2.3.0 PhpMyAdmin is now able to show SQL in Syntaxcoloring.
+ To use this feature set this value to TRUE (the default). If not everything
+ you want is colored or to influence where a newline is inserted see the
+ Configurationarrays $cfg['keywords'] and $cfg['additional']
+
+ $cfg['colorFunctions'] string [HTML color]
+
+ If you use Syntaxcoloring then this defines the Color of
+ Functionnames. e.g. all that are found in $cfg['Functions'].
+
+ $cfg['colorKeywords'] string [HTML color]
+
+ If you use Syntaxcoloring then this defines the Color of
+ Keywords. e.g. all that are found in $cfg['keywords'].
+
+ $cfg['colorStrings'] string [HTML color]
+
+ If you use Syntaxcoloring then this defines the Color of
+ Strings. e.g. all that are between ' or "
+
+ $cfg['colorColType'] string [HTML color]
+
+ If you use Syntaxcoloring then this defines the Color of
+ ColumnTypes. e.g. all that are found in $cfg['ColumnTypes'].
+
+ $cfg['colorAdd'] string [HTML color]
+
+ If you use Syntaxcoloring then this defines the Color of
+ additional Keywords that do not get a newline. e.g. all that
+ are found in $cfg['additional'].
+
$cfg['ColumnTypes'] array
All possible types of a MySQL column. In most cases you don't need to
@@ -1183,6 +1216,19 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
A list of functions MySQL supports. In most cases you don't need to
edit this.
+
+
+ $cfg['keywords'] array
+
+ A list of Keywords that is used for Syntaxcoloring. All Keywords that
+ are in this list will also get a new line before them. Usually you won't need
+ to change those.
+
+ $cfg['additional'] array
+
+ A list of additional Keywords that is used for Syntaxcoloring. All Keywords that
+ are in this list will not get a new line before them. Usually you won't need
+ to change those.
@@ -1210,7 +1256,9 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
Multi-user -
Browsers -
Usage tips -
-Project
+Project -
+Syntax Coloring
+
@@ -1919,7 +1967,29 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
in the navigation on top
-
+
+
+ I don't like the way syntaxcoloring displays my query
+
+ There is two things about the way how the Syntaxcoloring works that
+ you can easily change yourself:
+
+ - number of newlines within your statement
+ All Words that are in $cfg['keywords'] will get a newline in front of them,
+ all words in $cfg['additional'] don't. So say you don't like to have
+ a newline in front of every WHERE, you need to remove it from the $cfg['keywords'] array
+ and enter it in the $cfg['additional'] array instead.
+ - Colors
+ The colors are easily changed using the variables
+
+ - $cfg['colorFunctions']
+ - $cfg['colorKeywords']
+ - $cfg['colorStrings']
+ - $cfg['colorColType']
+ - $cfg['colorAdd']
+
+
+
[phpMyAdmin project]