File geshi/geshi/mysql.php
Last commit: Fri Nov 23 00:12:00 2007 +0100 dankert Farbige Darstellung von Code-Bl?cken mit Hilfe der Bibliothek GESHI.
1 <?php 2 /************************************************************************************* 3 * mysql.php 4 * --------- 5 * Author: Carl F�rstenberg (azatoth@gmail.com) 6 * Copyright: (c) 2005 Carl F�rstenberg, Nigel McNie (http://qbnz.com/highlighter) 7 * Release Version: 1.0.7.20 8 * Date Started: 2004/06/04 9 * 10 * MySQL language file for GeSHi. 11 * 12 * 13 ************************************************************************************* 14 * 15 * This file is part of GeSHi. 16 * 17 * GeSHi is free software; you can redistribute it and/or modify 18 * it under the terms of the GNU General Public License as published by 19 * the Free Software Foundation; either version 2 of the License, or 20 * (at your option) any later version. 21 * 22 * GeSHi is distributed in the hope that it will be useful, 23 * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 * GNU General Public License for more details. 26 * 27 * You should have received a copy of the GNU General Public License 28 * along with GeSHi; if not, write to the Free Software 29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 30 * 31 ************************************************************************************/ 32 33 $language_data = array ( 34 'LANG_NAME' => 'MySQL', 35 'COMMENT_SINGLE' => array(1 =>'--', 2 => '#'), 36 'COMMENT_MULTI' => array('/*' => '*/'), 37 'CASE_KEYWORDS' => 1, 38 'QUOTEMARKS' => array("'", '"', ''), 39 'ESCAPE_CHAR' => '\\', 40 'KEYWORDS' => array( 41 1 => array( 42 /* Mix */ 43 'ALTER DATABASE', 'ALTER TABLE', 'CREATE DATABASE', 'CREATE INDEX', 'CREATE TABLE', 'DROP DATABASE', 44 'DROP INDEX', 'DROP TABLE', 'RENAME TABLE', 'DELETE', 'DO', 'HANDLER', 'INSERT', 'LOAD DATA INFILE', 45 'REPLACE', 'SELECT', 'TRUNCATE', 'UPDATE', 'DESCRIBE', 'USE', 'START TRANSACTION', 'COMMIT', 'ROLLBACK', 46 'SAVEPOINT', 'ROLLBACK TO SAVEPOINT', 'LOCK TABLES', 'UNLOCK_TABLES', 'SET TRANACTIONS', 'SET', 'SHOW', 47 'CREATE PROCEDURE', 'CREATE FUNCTION', 'ALTER PROCEDURE', 'ALTER FUNCTION', 'DROP PROCEDURE', 'DROP FUNCTION', 48 'SHOW CREATE PROCEDURE', 'SHOW CREATE FUNCTION', 'SHOW PROCEDURE STATUS', 'SHOW FUNCTION STATUS', 49 'CALL', 'BEGIN', 'END', 'DECLARE', 'CREATE ROUTINE', 'ALTER ROUTINE', 'CREATE', 'ALTER', 'DROP', 50 'PRIMARY KEY', 'VALUES', 'INTO', 'FROM', 51 'ANALYZE', 'BDB', 'BERKELEYDB', 'BTREE', 'BY', 'CASCADE', 'CHECK', 'COLUMN', 'COLUMNS', 'CONSTRAINT', 52 'CROSS', 'DATABASES', 'DELAYED', 'DISTINCT', 'DISTINCTROW', 'ENCLOSED', 'ERRORS', 'ESCAPED', 'EXISTS', 53 'EXPLAIN', 'FALSE', 'FIELDS', 'FORCE', 'FOREIGN', 'FULLTEXT', 'GEOMETRY', 'GRANT', 'GROUP', 'HASH', 54 'HAVING', 'HELP', 'HIGH_PRIORITY', 'IGNORE', 'INNER', 'INNODB', 'INTERVAL', 'JOIN', 'KEYS', 'KILL', 55 'LINES', 'LOW_PRIORITY', 'MASTER_SERVER_ID', 'MATCH', 'MIDDLEINT', 'MRG_MYISAM', 'NATURAL', 'OPTIMIZE', 56 'OPTION', 'OPTIONALLY', 'ORDER', 'OUTER', 'OUTFILE', 'PRIVILEGES', 'PURGE', 'READ', 'REFERENCES', 57 'REQUIRE', 'RESTRICT', 'RETURNS', 'REVOKE', 'RLIKE', 'RTREE', 'SOME', 'SONAME', 'SPATIAL', 'SQL_BIG_RESULT', 58 'SQL_CALC_FOUND_ROWS', 'SQL_SMALL_RESULT', 'SSL', 'STARTING', 'STRAIGHT_JOIN', 'STRIPED', 'TERMINATED', 59 'TRUE', 'TYPES', 'UNION', 'USAGE', 'USER_RESOURCES', 'USING', 'VARCHARACTER', 'WARNINGS', 'WHERE', 'WRITE', 60 /* Control Flow Functions */ 61 'CASE', 'WHEN', 'THEN', 'ELSE', 'END', 62 /* String Functions */ 63 'UNHEX', 'BIN', 'BIT_LENGTH', 'CHAR_LENGTH', 'CHARACTER_LENGTH', 'COMPRESS', 'CONCAT', 64 'CONCAT_WS', 'CONV', 'ELT', 'EXPORT_SET', 'FIELD', 'FIND_IN_SET', 'FORMAT', 'HEX', 65 'INSERT', 'INSTR', 'LCASE', 'LEFT', 'LENGTH', 'LOAD_FILE', 'LOCATE', 'LOWER', 'LPAD', 66 'LTRIM', 'MAKE_SET', 'MID', 'OCT', 'OCTET_LENGTH', 'ORD', 'POSITION', 'QUOTE', 'REPEAT', 67 'REPLACE', 'REVERSE', 'RIGHT', 'RPAD', 'RTRIM', 'SOUNDEX', 'SPACE', 'SUBSTRING', 68 'SUBSTRING_INDEX', 'TRIM', 'UCASE', 'UPPER', 'UNCOMPRESS', 'UNCOMPRESSD_LENGTH', 69 'MD5', 'SHA1', 70 /* Numeric Functions */ 71 'ABS', 'ACOS', 'ASIN', 'ATAN', 'ATAN2', 'CEILING', 'CEIL', 'COS', 'COT', 'CRC32', 'DEGREES', 72 'EXP', 'FLOOR', 'LN', 'LOG', 'LOG2', 'LOG10', 'MOD', 'PI', 'POW', 'POWER', 'RADIANS', 'RAND', 73 'ROUND', 'SIGN', 'SIN', 'SQRT', 'TAN', 'TRUNCATE', 74 /* Date and Time Functions */ 75 'ADDDATE', 'ADDTIME', 'CONVERT_TZ', 'CURDATE', 'CURRENT_DATE', 'CURTIME', 'CURRENT_TIME', 76 'CURRENT_TIMESTAMP', 'DATEDIFF', 'DATE_ADD', 'DATE_SUB', 'DATE_FORMAT', 'DAY', 77 'DAYNAME', 'DAYOFMONTH', 'DAYOFWEEK', 'DAYOFYEAR', 'EXTRACT', 'FROM_DAYS', 'FROM_UNIXTIME', 78 'GET_FORMAT', 'LAST_DAY', 'LOCALTIME', 'LOCALTIMESTAMP', 'MAKEDATE', 'MAKETIME', 79 'MICROSECOND', 'MONTHNAME', 'NOW', 'PERIOD_ADD', 'PERIOD_DIFF', 'QUARTER', 80 'SECOND', 'SEC_TO_TIME', 'STR_TO_DATE', 'SUBDATE', 'SUBTIME', 'SYSDATE', 'TIME', 'TIMEDIFF', 81 'TIMESTAMP', 'TIMESTAMPADD', 'TIMESTAMPDIFF', 'TIME_FORMAT', 'TIME_TO_SEC', 'TO_DAYS', 82 'UNIX_TIMESTAMP', 'UTC_DATE', 'UTC_TIME', 'UTC_TIMESTAMP', 'WEEKDAY', 'WEEKOFYEAR', 83 'YEARWEEK', 84 85 ), 86 2 => array( 87 'INTEGER', 'SMALLINT', 'DECIMAL', 'NUMERIC', 'FLOAT', 'REAL', 'DOUBLE PRECISION', 88 'DOUBLE', 'INT', 'DEC', 'BIT' ,'TINYINT', 'SMALLINT', 'MEDIUMINT', 'BIGINT', 89 'DATETIME', 'DATE', 'TIMESTAMP', 'TIME', 'YEAR', 90 'CHAR', 'VARCHAR', 'BINARY', 'CHARACTER VARYING', 'VARBINARY', 'TINYBLOB', 'TINYTEXT', 91 'BLOB', 'TEXT','MEDIUMBLOB', 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'ENUM', 'SET', 92 'SERIAL DEFAULT VALUE', 'SERIAL', 'FIXED' 93 ), 94 3 => array( 95 'ZEROFILL', 'NOT NULL', 'UNSIGNED', 'AUTO_INCREMENT', 'UNIQUE', 'NOT', 'NULL', 'CHARACTER SET', 'CHARSET', 96 'ASCII', 'UNICODE', 'NATIONAL', 'BOTH', 'LEADING', 'TRAILING','DEFAULT' 97 ), 98 4 => array( 99 'MICROSECOND', 'SECOND', 'MINUTE', 'HOUR', 'DAY', 'WEEK', 'MONTH', 'QUARTER', 'YEAR', 'SECOND_MICROSECOND', 100 'MINUTE_MICROSECOND', 'MINUTE_SECOND', 'HOUR_MICROSECOND', 'HOUR_SECOND', 'HOUR_MINUTE', 'DAY_MICROSECOND', 101 'DAY_SECOND', 'DAY_MINUTE', 'DAY_HOUR', 'YEAR_MONTH' 102 ), 103 5 => array( 104 'OR', 'XOR', 'AND', 'NOT', 'BETWEEN', 'IS', 'LIKE', 'REGEXP', 'IN', 'DIV', 105 'MOD', 'BINARY', 'COLLATE', 'LIMIT', 'OFFSET' 106 ), 107 ), 108 'SYMBOLS' => array( 109 ':=', 110 '||', 'OR', 'XOR', 111 '&&', 'AND', 112 'NOT', 113 'BETWEEN', 'CASE', 'WHEN', 'THEN', 'ELSE', 114 '=', '<=>', '>=', '>', '<=', '<', '<>', '!=', 'IS', 'LIKE', 'REGEXP', 'IN', 115 '|', 116 '&', 117 '<<', '>>', 118 '-', '+', 119 '*', '/', 'DIV', '%', 'MOD', 120 '^', 121 '-', '~', 122 '!', 123 'BINARY', 'COLLATE', 124 '(', ')', 125 ), 126 'CASE_SENSITIVE' => array( 127 GESHI_COMMENTS => false, 128 1 => false, 129 2 => false, 130 3 => false, 131 4 => false, 132 5 => false 133 ), 134 'STYLES' => array( 135 'KEYWORDS' => array( 136 1 => 'color: #993333; font-weight: bold;', 137 2 => 'color: #aa9933; font-weight: bold;', 138 3 => 'color: #aa3399; font-weight: bold;', 139 4 => 'color: #33aa99; font-weight: bold;', 140 5 => 'color: #993333; font-weight: bold;' 141 ), 142 'COMMENTS' => array( 143 'MULTI' => 'color: #808080; font-style: italic;', 144 1 => 'color: #808080; font-style: italic;', 145 2 => 'color: #808080; font-style: italic;' 146 ), 147 'ESCAPE_CHAR' => array( 148 0 => 'color: #000099; font-weight: bold;' 149 ), 150 'BRACKETS' => array( 151 0 => 'color: #66cc66;' 152 ), 153 'STRINGS' => array( 154 0 => 'color: #ff0000;' 155 ), 156 'NUMBERS' => array( 157 0 => 'color: #cc66cc;' 158 ), 159 'METHODS' => array( 160 ), 161 'SYMBOLS' => array( 162 0 => 'color: #66cc66;' 163 ), 164 'SCRIPT' => array( 165 ), 166 'REGEXPS' => array( 167 ) 168 ), 169 'OOLANG' => false, 170 'OBJECT_SPLITTERS' => array( 171 ), 172 'REGEXPS' => array( 173 ), 174 'STRICT_MODE_APPLIES' => GESHI_NEVER, 175 'SCRIPT_DELIMITERS' => array( 176 ), 177 'HIGHLIGHT_STRICT_BLOCK' => array( 178 ) 179 ); 180 181 ?>
Downloadgeshi/geshi/mysql.php
History Fri, 23 Nov 2007 00:12:00 +0100 dankert Farbige Darstellung von Code-Bl?cken mit Hilfe der Bibliothek GESHI.