openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

qbasic.php (5218B)


      1 <?php
      2 /*************************************************************************************
      3  * qbasic.php
      4  * ----------
      5  * Author: Nigel McNie (nigel@geshi.org)
      6  * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
      7  * Release Version: 1.0.7.20
      8  * Date Started: 2004/06/20
      9  *
     10  * QBasic/QuickBASIC language file for GeSHi.
     11  *
     12  * CHANGES
     13  * -------
     14  * 2004/11/27 (1.0.3)
     15  *  -  Added support for multiple object splitters
     16  * 2004/10/27 (1.0.2)
     17  *   -  Added support for URLs
     18  * 2004/08/05 (1.0.1)
     19  *   -  Added support for symbols
     20  *   -  Removed unnessecary slashes from some keywords
     21  * 2004/07/14 (1.0.0)
     22  *   -  First Release
     23  *
     24  * TODO (updated 2004/11/27)
     25  * -------------------------
     26  * * Make sure all possible combinations of keywords with
     27  *   a space in them (EXIT FOR, END SELECT) are added
     28  *   to the first keyword group
     29  * * Update colours, especially for the first keyword group
     30  *
     31  *************************************************************************************
     32  *
     33  *     This file is part of GeSHi.
     34  *
     35  *   GeSHi is free software; you can redistribute it and/or modify
     36  *   it under the terms of the GNU General Public License as published by
     37  *   the Free Software Foundation; either version 2 of the License, or
     38  *   (at your option) any later version.
     39  *
     40  *   GeSHi is distributed in the hope that it will be useful,
     41  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     42  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     43  *   GNU General Public License for more details.
     44  *
     45  *   You should have received a copy of the GNU General Public License
     46  *   along with GeSHi; if not, write to the Free Software
     47  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     48  *
     49  ************************************************************************************/
     50 $language_data = array (
     51 	'LANG_NAME' => 'QBasic/QuickBASIC',
     52 	'COMMENT_SINGLE' => array(1 => "'", 2 => ' REM', 3 => "\tREM"),
     53 	'COMMENT_MULTI' => array(),
     54 	'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
     55 	'QUOTEMARKS' => array('"'),
     56 	'ESCAPE_CHAR' => '',
     57 	'KEYWORDS' => array(
     58 		1 => array(
     59 			'DO', 'LOOP', 'WHILE', 'WEND', 'THEN', 'ELSE', 'ELSEIF', 'IF',
     60 			'FOR', 'TO', 'NEXT', 'STEP', 'GOTO', 'GOSUB', 'RETURN', 'RESUME', 'SELECT',
     61 			'CASE', 'UNTIL'
     62 			),
     63 		3 => array(
     64 			'ABS', 'ABSOLUTE', 'ACCESS', 'ALIAS', 'AND', 'ANY', 'APPEND', 'AS', 'ASC', 'ATN',
     65 			'BASE', 'BEEP', 'BINARY', 'BLOAD', 'BSAVE', 'BYVAL', 'CALL', 'CALLS', 'CASE',
     66 			'CDBL', 'CDECL', 'CHAIN', 'CHDIR', 'CHDIR', 'CHR$', 'CINT', 'CIRCLE', 'CLEAR',
     67 			'CLNG', 'CLOSE', 'CLS', 'COM', 'COMMAND$', 'COMMON', 'CONST', 'COS', 'CSNG',
     68 			'CSRLIN', 'CVD', 'CVDMBF', 'CVI', 'CVL', 'CVS', 'CVSMDF', 'DATA', 'DATE$',
     69 			'DECLARE', 'DEF', 'FN', 'SEG', 'DEFDBL', 'DEFINT', 'DEFLNG', 'DEFSNG', 'DEFSTR',
     70 			'DIM', 'DOUBLE', 'DRAW', 'END', 'ENVIRON', 'ENVIRON$', 'EOF', 'EQV', 'ERASE',
     71 			'ERDEV', 'ERDEV$', 'ERL', 'ERR', 'ERROR', 'EXIT', 'EXP', 'FIELD', 'FILEATTR',
     72 			'FILES', 'FIX', 'FRE', 'FREEFILE', 'FUNCTION', 'GET', 'HEX$', 'IMP', 'INKEY$',
     73 			'INP', 'INPUT', 'INPUT$', 'INSTR', 'INT', 'INTEGER', 'IOCTL', 'IOCTL$', 'IS',
     74 			'KEY', 'KILL', 'LBOUND', 'LCASE$', 'LEFT$', 'LEN', 'LET', 'LINE', 'LIST', 'LOC',
     75 			'LOCAL', 'LOCATE', 'LOCK', 'LOF', 'LOG', 'UNLOCK', 'LONG', 'LPOS', 'LPRINT',
     76 			'LSET', 'LTRIM$', 'MID$', 'MKD$', 'MKDIR', 'MKDMBF$', 'MKI$', 'MKL$',
     77 			'MKS$', 'MKSMBF$', 'MOD', 'NAME', 'NOT', 'OCT$', 'OFF', 'ON', 'PEN', 'PLAY',
     78 			'STRIG', 'TIMER', 'UEVENT', 'OPEN', 'OPTION', 'BASE', 'OR', 'OUT', 'OUTPUT',
     79 			'PAINT', 'PALETTE', 'PCOPY', 'PEEK', 'PMAP', 'POINT', 'POKE', 'POS', 'PRESET',
     80 			'PRINT', 'USING', 'PSET', 'PUT', 'RANDOM', 'RANDOMIZE', 'READ', 'REDIM', 'RESET',
     81 			'RESTORE', 'RIGHT$', 'RMDIR', 'RND', 'RSET', 'RTRIM$', 'RUN', 'SADD', 'SCREEN',
     82 			'SEEK', 'SETMEM', 'SGN', 'SHARED', 'SHELL', 'SIGNAL', 'SIN', 'SINGLE', 'SLEEP',
     83 			'SOUND', 'SPACE$', 'SPC', 'SQR', 'STATIC', 'STICK', 'STOP', 'STR$', 'STRIG',
     84 			'STRING', 'STRING$', 'SUB', 'SWAP', 'SYSTEM', 'TAB', 'TAN', 'TIME$', 'TIMER',
     85 			'TROFF', 'TRON', 'TYPE', 'UBOUND', 'UCASE$', 'UEVENT', 'UNLOCK', 'USING', 'VAL',
     86 			'VARPTR', 'VARPTR$', 'VARSEG', 'VIEW', 'WAIT', 'WIDTH', 'WINDOW', 'WRITE', 'XOR'
     87 			)
     88 		),
     89 	'SYMBOLS' => array(
     90 		'(', ')'
     91 		),
     92 	'CASE_SENSITIVE' => array(
     93 		GESHI_COMMENTS => false,
     94 		1 => false,
     95 		3 => false
     96 		),
     97 	'STYLES' => array(
     98 		'KEYWORDS' => array(
     99 			1 => 'color: #a1a100;',
    100 			3 => 'color: #000066;'
    101 			),
    102 		'COMMENTS' => array(
    103 			1 => 'color: #808080;',
    104 			2 => 'color: #808080;',
    105             3 => 'color: #808080;'
    106 			),
    107 		'BRACKETS' => array(
    108 			0 => 'color: #66cc66;'
    109 			),
    110 		'STRINGS' => array(
    111 			0 => 'color: #ff0000;'
    112 			),
    113 		'NUMBERS' => array(
    114 			0 => 'color: #cc66cc;'
    115 			),
    116 		'METHODS' => array(
    117 			),
    118 		'SYMBOLS' => array(
    119 			0 => 'color: #66cc66;'
    120 			),
    121 		'ESCAPE_CHAR' => array(
    122 			0 => 'color: #000099;'
    123 			),
    124 		'SCRIPT' => array(
    125 			),
    126 		'REGEXPS' => array(
    127 			)
    128 		),
    129 	'URLS' => array(
    130 		1 => '',
    131 		3 => 'http://www.qbasicnews.com/qboho/qck{FNAME}.shtml'
    132 		),
    133 	'OOLANG' => false,
    134 	'OBJECT_SPLITTERS' => array(
    135 		),
    136 	'REGEXPS' => array(
    137 		),
    138 	'STRICT_MODE_APPLIES' => GESHI_NEVER,
    139 	'SCRIPT_DELIMITERS' => array(
    140 		),
    141 	'HIGHLIGHT_STRICT_BLOCK' => array(
    142         ),
    143     'TAB_WIDTH' => 8
    144 );
    145 
    146 ?>